Ignore YouTube mix when searching

- We can't extract them properly (at least for now)
pull/31/head
Mauricio Colli 2017-09-11 11:04:06 -03:00
rodzic 390e5727d6
commit bd3db34092
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -110,7 +110,8 @@ public class YoutubeSearchEngine extends SearchEngine {
collector.commit(new YoutubeStreamInfoItemExtractor(el));
} else if ((el = item.select("div[class*=\"yt-lockup-channel\"]").first()) != null) {
collector.commit(new YoutubeChannelInfoItemExtractor(el));
} else if ((el = item.select("div[class*=\"yt-lockup-playlist\"]").first()) != null) {
} else if ((el = item.select("div[class*=\"yt-lockup-playlist\"]").first()) != null &&
item.select(".yt-pl-icon-mix").isEmpty()) {
collector.commit(new YoutubePlaylistInfoItemExtractor(el));
} else {
// noinspection ConstantConditions