mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 23:40:36 +05:30
[YouTube] Remove useless comments about mixes
This commit is contained in:
parent
34a4484c72
commit
8f9d5b858e
@ -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.
|
* @throws ParsingException If the playlistId is a Channel Mix or not a mix.
|
||||||
*/
|
*/
|
||||||
@Nonnull
|
@Nonnull
|
||||||
public static String extractVideoIdFromMixId(@Nonnull final String playlistId)
|
public static String extractVideoIdFromMixId(@Nonnull final String playlistId)
|
||||||
throws ParsingException {
|
throws ParsingException {
|
||||||
if (isYoutubeMyMixId(playlistId)) { // My Mix
|
if (isYoutubeMyMixId(playlistId)) {
|
||||||
return playlistId.substring(4);
|
return playlistId.substring(4);
|
||||||
|
|
||||||
} else if (isYoutubeMusicMixId(playlistId)) { // starts with "RDAMVM" or "RDCLAK"
|
} else if (isYoutubeMusicMixId(playlistId)) {
|
||||||
return playlistId.substring(6);
|
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
|
// 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: "
|
throw new ParsingException("Video id could not be determined from mix id: "
|
||||||
+ playlistId);
|
+ playlistId);
|
||||||
|
|
||||||
} else if (isYoutubeMixId(playlistId)) { // normal mix, starts with "RD"
|
} else if (isYoutubeMixId(playlistId)) { // normal mix
|
||||||
return playlistId.substring(2);
|
return playlistId.substring(2);
|
||||||
|
|
||||||
} else { // not a mix
|
} else { // not a mix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user