Skip to content

Commit

Permalink
Handle /playlist type mix links.
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed Dec 26, 2024
1 parent 3207387 commit ccd7ceb
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,14 @@ protected Router getRouter(@NotNull HttpInterface httpInterface, @NotNull String
} else if ("/playlist".equals(urlInfo.path)) {
String playlistId = urlInfo.parameters.get("list");

if (playlistId != null) return (client) -> client.loadPlaylist(this, httpInterface, playlistId, null);
if (playlistId != null) {
if (playlistId.startsWith("RD")) { // mix handling
String videoId = playlistId.substring(2);
return (client) -> client.loadMix(this, httpInterface, playlistId, videoId);
}

return (client) -> client.loadPlaylist(this, httpInterface, playlistId, null);
}
} else if ("/watch_videos".equals(urlInfo.path)) {
String videoIds = urlInfo.parameters.get("video_ids");

Expand Down

0 comments on commit ccd7ceb

Please sign in to comment.