From 5554d5afff3e8bad1d59616c3e9c6f6f7bcd7b1b Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 4 Apr 2020 22:52:09 -0700 Subject: Add playlist sidebar for videos in playlist, including autoplay --- youtube/playlist.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'youtube/playlist.py') diff --git a/youtube/playlist.py b/youtube/playlist.py index 91c8d1d..b7167f6 100644 --- a/youtube/playlist.py +++ b/youtube/playlist.py @@ -105,6 +105,10 @@ def get_playlist_page(): if 'id' in item: item['thumbnail'] = '/https://i.ytimg.com/vi/' + item['id'] + '/default.jpg' + item['url'] += '&list=' + playlist_id + if item['index']: + item['url'] += '&index=' + str(item['index']) + video_count = yt_data_extract.deep_get(info, 'metadata', 'video_count') if video_count is None: video_count = 40 -- cgit v1.2.3