Don't accept YouTube Mix playlists

This commit is contained in:
wb9688 2020-03-02 19:56:43 +01:00
parent e4874d554e
commit bcd2a1092b
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;
}
}