aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-05-28 21:42:13 -0400
committerJesus E <heckyel@riseup.net>2023-05-28 21:42:13 -0400
commitaa57ace7420bcbb4712d8aab0736f00115634c4a (patch)
treeb475bda3b6ba4006b3611a931d310c8a57166914 /youtube/watch.py
parent512798366c935f57cf4c583a1de6bcd9ab7bb680 (diff)
downloadyt-local-aa57ace7420bcbb4712d8aab0736f00115634c4a.tar.lz
yt-local-aa57ace7420bcbb4712d8aab0736f00115634c4a.tar.xz
yt-local-aa57ace7420bcbb4712d8aab0736f00115634c4a.zip
Fix music list extraction
Closes #160
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index 53836aa..1db7895 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -688,6 +688,8 @@ def get_watch_page(video_id=None):
for item in info['related_videos']:
util.prefix_urls(item)
util.add_extra_html_info(item)
+ for song in info['music_list']:
+ song['url'] = util.prefix_url(song['url'])
if info['playlist']:
playlist_id = info['playlist']['id']
for item in info['playlist']['items']: