diff options
Diffstat (limited to 'youtube/playlist.py')
| -rw-r--r-- | youtube/playlist.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube/playlist.py b/youtube/playlist.py index bedf2d2..c7e0410 100644 --- a/youtube/playlist.py +++ b/youtube/playlist.py @@ -78,6 +78,15 @@ def get_playlist_page(): abort(400) playlist_id = request.args.get('list') + + # Radio/Mix playlists (RD...) only work as watch page, not playlist page + if playlist_id.startswith('RD'): + first_video_id = playlist_id[2:] # video ID after 'RD' prefix + return flask.redirect( + util.URL_ORIGIN + '/watch?v=' + first_video_id + '&list=' + playlist_id, + 302 + ) + page = request.args.get('page', '1') if page == '1': |
