File tree Expand file tree Collapse file tree
extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -282,25 +282,24 @@ public static boolean isYoutubeChannelMixId(@Nonnull final String playlistId) {
282282 }
283283
284284 /**
285- * Extracts the video id from the playlist id for Mixes.
286- *
285+ * @return the video id extracted from the playlist id for Mixes
287286 * @throws ParsingException If the playlistId is a Channel Mix or not a mix.
288287 */
289288 @ Nonnull
290289 public static String extractVideoIdFromMixId (@ Nonnull final String playlistId )
291290 throws ParsingException {
292- if (isYoutubeMyMixId (playlistId )) { // My Mix
291+ if (isYoutubeMyMixId (playlistId )) {
293292 return playlistId .substring (4 );
294293
295- } else if (isYoutubeMusicMixId (playlistId )) { // starts with "RDAMVM" or "RDCLAK"
294+ } else if (isYoutubeMusicMixId (playlistId )) {
296295 return playlistId .substring (6 );
297296
298- } else if (isYoutubeChannelMixId (playlistId )) { // starts with "RMCM"
297+ } else if (isYoutubeChannelMixId (playlistId )) {
299298 // Channel mix are build with RMCM{channelId}, so videoId can't be determined
300299 throw new ParsingException ("Video id could not be determined from mix id: "
301300 + playlistId );
302301
303- } else if (isYoutubeMixId (playlistId )) { // normal mix, starts with "RD"
302+ } else if (isYoutubeMixId (playlistId )) { // normal mix
304303 return playlistId .substring (2 );
305304
306305 } else { // not a mix
You can’t perform that action at this time.
0 commit comments