aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/playlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/playlist.py')
-rw-r--r--youtube/playlist.py4
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