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 authored and TobiGr committed Jul 22, 2024
1 parent ae18d41 commit af63ec4
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 af63ec4

Please sign in to comment.