[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
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ public class SoundcloudParsingHelper {
|
||||||
Collections.reverse(possibleScripts);
|
Collections.reverse(possibleScripts);
|
||||||
|
|
||||||
final HashMap<String, List<String>> headers = new HashMap<>();
|
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) {
|
for (Element element : possibleScripts) {
|
||||||
final String srcUrl = element.attr("src");
|
final String srcUrl = element.attr("src");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue