diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-04-04 22:52:09 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-04-04 22:52:09 -0700 |
commit | 5554d5afff3e8bad1d59616c3e9c6f6f7bcd7b1b (patch) | |
tree | 38974f251b197aa5c580c8a38bc0a19232480272 /youtube/playlist.py | |
parent | b5d42e2f3c99f146f3fe4efd0a9062b255ef6d9c (diff) | |
download | yt-local-5554d5afff3e8bad1d59616c3e9c6f6f7bcd7b1b.tar.lz yt-local-5554d5afff3e8bad1d59616c3e9c6f6f7bcd7b1b.tar.xz yt-local-5554d5afff3e8bad1d59616c3e9c6f6f7bcd7b1b.zip |
Add playlist sidebar for videos in playlist, including autoplay
Diffstat (limited to 'youtube/playlist.py')
-rw-r--r-- | youtube/playlist.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |