Skip to content

Commit

Permalink
Merge pull request #943 from TeamNewPipe/fix/sc/comments
Browse files Browse the repository at this point in the history
[SoundCloud] Fix getting more comments
  • Loading branch information
TobiGr authored Oct 29, 2022
2 parents 4bc90cd + 4d13659 commit 3d31416
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public final class SoundcloudStreamLinkHandlerFactory extends LinkHandlerFactory
= new SoundcloudStreamLinkHandlerFactory();
private static final String URL_PATTERN = "^https?://(www\\.|m\\.)?soundcloud.com/[0-9a-z_-]+"
+ "/(?!(tracks|albums|sets|reposts|followers|following)/?$)[0-9a-z_-]+/?([#?].*)?$";

private static final String API_URL_PATTERN = "^https?://api-v2\\.soundcloud.com"
+ "/(tracks|albums|sets|reposts|followers|following)/([0-9a-z_-]+)/";
private SoundcloudStreamLinkHandlerFactory() {
}

Expand All @@ -31,6 +32,9 @@ public String getUrl(final String id) throws ParsingException {

@Override
public String getId(final String url) throws ParsingException {
if (Parser.isMatch(API_URL_PATTERN, url)) {
return Parser.matchGroup1(API_URL_PATTERN, url);
}
Utils.checkUrl(URL_PATTERN, url);

try {
Expand Down

0 comments on commit 3d31416

Please sign in to comment.