From 33594d4aff7ea372a9cc72d3c1c62a216b7e9989 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Thu, 4 Mar 2021 21:28:22 +0100 Subject: [PATCH] [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. --- .../extractor/services/soundcloud/SoundcloudParsingHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java index 1cb451761..52e7fdae1 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java @@ -67,7 +67,7 @@ public class SoundcloudParsingHelper { Collections.reverse(possibleScripts); final HashMap> 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");