aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-05-15 15:17:01 -0700
committerJesús <heckyel@hyperbola.info>2021-05-17 22:07:10 -0500
commitb01a16d45b11feb211dae0834850c19fe43043e4 (patch)
treea183da9554b8fa085b7e5280d742472b8fdb7fd8
parentf0cd170767d40047279335d1439f77ca0eadfa18 (diff)
downloadyt-local-b01a16d45b11feb211dae0834850c19fe43043e4.tar.lz
yt-local-b01a16d45b11feb211dae0834850c19fe43043e4.tar.xz
yt-local-b01a16d45b11feb211dae0834850c19fe43043e4.zip
Fix vids added to playlist from watch page not having author url
Signed-off-by: Jesús <heckyel@hyperbola.info>
-rw-r--r--youtube/watch.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index c3c90bc..9e24ae7 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -392,10 +392,11 @@ def get_watch_page(video_id=None):
return flask.render_template('error.html', error_message=info['error'])
video_info = {
- "duration": util.seconds_to_timestamp(info["duration"] or 0),
- "id": info['id'],
- "title": info['title'],
- "author": info['author'],
+ 'duration': util.seconds_to_timestamp(info['duration'] or 0),
+ 'id': info['id'],
+ 'title': info['title'],
+ 'author': info['author'],
+ 'author_id': info['author_id'],
}
# prefix urls, and other post-processing not handled by yt_data_extract