aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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