Don't accept YouTube Mix playlists
This commit is contained in:
parent
e4874d554e
commit
bcd2a1092b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue