Skip to content

Commit

Permalink
fixup! fixup! Add support for on.soundcloud.com urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsir911 committed May 20, 2024
1 parent c95104c commit d3b61ca
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d3b61ca

Please sign in to comment.