fixup! fixup! Add support for on.soundcloud.com urls

This commit is contained in:
Marco Sirabella 2024-05-20 14:18:18 -04:00
parent c95104c812
commit d3b61ca5d5
No known key found for this signature in database
GPG Key ID: 2C64DD0F690B3C0E
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ public final class SoundcloudParsingHelper {
if (ON_URL_PATTERN.matcher(fixedUrl).find()) {
try {
fixedUrl = NewPipe.getDownloader().head(fixedUrl).latestUrl();
fixedUrl = fixedUrl.split("\\?")[0]; // remove the query string
} catch (final ExtractionException e) {
throw new ParsingException(
"Could not follow on.soundcloud.com redirect", e);