Skip to content

Commit 8f9d5b8

Browse files
committed
[YouTube] Remove useless comments about mixes
1 parent 34a4484 commit 8f9d5b8

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)