Merge pull request #276 from wb9688/no-yt-mix

Don't accept YouTube Mix playlists
This commit is contained in:
Tobias Groza 2020-03-25 11:18:07 +01:00 committed by GitHub
commit bff595c6c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -54,10 +54,9 @@ public class YoutubePlaylistLinkHandlerFactory extends ListLinkHandlerFactory {
@Override
public boolean onAcceptUrl(final String url) {
try {
getId(url);
return !getId(url).startsWith("RD"); // Don't accept auto-generated "Mix" playlists
} catch (ParsingException e) {
return false;
}
return true;
}
}