From b01a16d45b11feb211dae0834850c19fe43043e4 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 15 May 2021 15:17:01 -0700 Subject: Fix vids added to playlist from watch page not having author url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- youtube/watch.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'youtube/watch.py') 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 -- cgit v1.2.3