From bcd2a1092bcf22b182743243ea98ceec6b8c63ea Mon Sep 17 00:00:00 2001 From: wb9688 Date: Mon, 2 Mar 2020 19:56:43 +0100 Subject: [PATCH] Don't accept YouTube Mix playlists --- .../youtube/linkHandler/YoutubePlaylistLinkHandlerFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubePlaylistLinkHandlerFactory.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubePlaylistLinkHandlerFactory.java index 29bbdfdf..aef4626a 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubePlaylistLinkHandlerFactory.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubePlaylistLinkHandlerFactory.java @@ -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; } }