Merge pull request #571 from TeamNewPipe/soundcloud_client_id
[SoundCloud] Update client_id and fix extraction
This commit is contained in:
commit
ec1127dd6a
|
@ -40,7 +40,7 @@ import static org.schabi.newpipe.extractor.ServiceList.SoundCloud;
|
||||||
import static org.schabi.newpipe.extractor.utils.Utils.*;
|
import static org.schabi.newpipe.extractor.utils.Utils.*;
|
||||||
|
|
||||||
public class SoundcloudParsingHelper {
|
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 static String clientId;
|
||||||
|
|
||||||
private SoundcloudParsingHelper() {
|
private SoundcloudParsingHelper() {
|
||||||
|
@ -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…
Reference in New Issue