Skip to content

Commit bd3db34

Browse files
committed
Ignore YouTube mix when searching
- We can't extract them properly (at least for now)
1 parent 390e572 commit bd3db34

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSearchEngine.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ public InfoItemSearchCollector search(String query, int page, String languageCod
110110
collector.commit(new YoutubeStreamInfoItemExtractor(el));
111111
} else if ((el = item.select("div[class*=\"yt-lockup-channel\"]").first()) != null) {
112112
collector.commit(new YoutubeChannelInfoItemExtractor(el));
113-
} else if ((el = item.select("div[class*=\"yt-lockup-playlist\"]").first()) != null) {
113+
} else if ((el = item.select("div[class*=\"yt-lockup-playlist\"]").first()) != null &&
114+
item.select(".yt-pl-icon-mix").isEmpty()) {
114115
collector.commit(new YoutubePlaylistInfoItemExtractor(el));
115116
} else {
116117
// noinspection ConstantConditions

0 commit comments

Comments
 (0)