[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.
This commit is contained in:
TobiGr 2021-03-04 21:28:22 +01:00
parent fb2f37d223
commit 33594d4aff

View File

@ -67,7 +67,7 @@ public class SoundcloudParsingHelper {
Collections.reverse(possibleScripts);
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");