mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 14:20:33 +05:30
[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:
parent
fb2f37d223
commit
33594d4aff
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user