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 201ef34ba6..621bc360d3 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,10 +197,10 @@ 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 + // remove tracking params which are in the query string + fixedUrl = fixedUrl.split("\\?")[0]; } catch (final ExtractionException e) { - throw new ParsingException( - "Could not follow on.soundcloud.com redirect", e); + throw new ParsingException("Could not follow on.soundcloud.com redirect", e); } }