From 8f9d5b858efca0b8420fa7b3c5067a0a945fd32f Mon Sep 17 00:00:00 2001 From: Stypox Date: Thu, 17 Feb 2022 15:25:06 +0100 Subject: [PATCH] [YouTube] Remove useless comments about mixes --- .../services/youtube/YoutubeParsingHelper.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java index cef3db86e..e9cf244ab 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java @@ -282,25 +282,24 @@ public class YoutubeParsingHelper { } /** - * Extracts the video id from the playlist id for Mixes. - * + * @return the video id extracted from the playlist id for Mixes * @throws ParsingException If the playlistId is a Channel Mix or not a mix. */ @Nonnull public static String extractVideoIdFromMixId(@Nonnull final String playlistId) throws ParsingException { - if (isYoutubeMyMixId(playlistId)) { // My Mix + if (isYoutubeMyMixId(playlistId)) { return playlistId.substring(4); - } else if (isYoutubeMusicMixId(playlistId)) { // starts with "RDAMVM" or "RDCLAK" + } else if (isYoutubeMusicMixId(playlistId)) { return playlistId.substring(6); - } else if (isYoutubeChannelMixId(playlistId)) { // starts with "RMCM" + } else if (isYoutubeChannelMixId(playlistId)) { // Channel mix are build with RMCM{channelId}, so videoId can't be determined throw new ParsingException("Video id could not be determined from mix id: " + playlistId); - } else if (isYoutubeMixId(playlistId)) { // normal mix, starts with "RD" + } else if (isYoutubeMixId(playlistId)) { // normal mix return playlistId.substring(2); } else { // not a mix