Skip to content

Commit

Permalink
Merge pull request #571 from TeamNewPipe/soundcloud_client_id
Browse files Browse the repository at this point in the history
[SoundCloud] Update client_id and fix extraction
  • Loading branch information
TobiGr authored Mar 5, 2021
2 parents b608587 + 33594d4 commit ec1127d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import static org.schabi.newpipe.extractor.utils.Utils.*;

public class SoundcloudParsingHelper {
private static final String HARDCODED_CLIENT_ID = "H2c34Q0E7hftqnuDHGsk88DbNqhYpgMm"; // Updated on 24/06/20
private static final String HARDCODED_CLIENT_ID = "Kl9G8jQT22DxqatQk09IjWRujGlut5Vd"; // Updated on 04/03/21
private static String clientId;

private SoundcloudParsingHelper() {
Expand All @@ -67,7 +67,7 @@ public synchronized static String clientId() throws ExtractionException, IOExcep
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");
Expand Down

0 comments on commit ec1127d

Please sign in to comment.