Skip to content

Commit 33594d4

Browse files
committed
[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.
1 parent fb2f37d commit 33594d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public synchronized static String clientId() throws ExtractionException, IOExcep
6767
Collections.reverse(possibleScripts);
6868

6969
final HashMap<String, List<String>> headers = new HashMap<>();
70-
headers.put("Range", singletonList("bytes=0-16384"));
70+
headers.put("Range", singletonList("bytes=0-50000"));
7171

7272
for (Element element : possibleScripts) {
7373
final String srcUrl = element.attr("src");

0 commit comments

Comments
 (0)