[YouTube] Now music mixes can be treated as normal mixes

Using a playlist extractor on them would result in "Unviewable playlist" errors
This commit is contained in:
Stypox 2023-01-15 23:28:59 +01:00
parent ff94e9f30b
commit 7293991832
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
2 changed files with 2 additions and 4 deletions

View File

@ -388,8 +388,7 @@ public final class YoutubeParsingHelper {
* @return Whether given id belongs to a YouTube Mix
*/
public static boolean isYoutubeMixId(@Nonnull final String playlistId) {
return playlistId.startsWith("RD")
&& !isYoutubeMusicMixId(playlistId);
return playlistId.startsWith("RD");
}
/**

View File

@ -110,8 +110,7 @@ public class YoutubeService extends StreamingService {
@Override
public PlaylistExtractor getPlaylistExtractor(final ListLinkHandler linkHandler) {
if (YoutubeParsingHelper.isYoutubeMixId(linkHandler.getId())
&& !YoutubeParsingHelper.isYoutubeMusicMixId(linkHandler.getId())) {
if (YoutubeParsingHelper.isYoutubeMixId(linkHandler.getId())) {
return new YoutubeMixPlaylistExtractor(this, linkHandler);
} else {
return new YoutubePlaylistExtractor(this, linkHandler);