Commit 33594d4a authored by TobiGr's avatar TobiGr
Browse files

[SoundCloud] Fix client id extraction

SoundCloud changed their Javascript structure. That caused the client_id to be in the middle of the file (at byte ~43000 ). To have a little buffer, we now fetch the first 50000 bytes.
parent fb2f37d2
......@@ -67,7 +67,7 @@ public class SoundcloudParsingHelper {
final HashMap<String, List<String>> headers = new HashMap<>();
headers.put("Range", singletonList("bytes=0-16384"));
headers.put("Range", singletonList("bytes=0-50000"));
for (Element element : possibleScripts) {
final String srcUrl = element.attr("src");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment