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 8ad6b49c57..201ef34ba6 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 @@ -197,6 +197,7 @@ public static String resolveIdWithWidgetApi(final String urlString) throws IOExc 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);