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

Don't accept YouTube Mix playlists
pull/301/head
Tobias Groza 2020-03-25 11:18:07 +01:00 zatwierdzone przez GitHub
commit bff595c6c6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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;
}
}