diff options
author | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-07 19:28:52 +0200 |
---|---|---|
committer | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-07 19:28:52 +0200 |
commit | f8d9be2d5a947a2adde12d187a52b18b7218c541 (patch) | |
tree | e0c2943b1de9f400acdbd25db2492c3673d88733 /youtube/comments.py | |
parent | 9123d9a6cfa2af511b17591541ab2e67aa83475f (diff) | |
download | yt-local-f8d9be2d5a947a2adde12d187a52b18b7218c541.tar.lz yt-local-f8d9be2d5a947a2adde12d187a52b18b7218c541.tar.xz yt-local-f8d9be2d5a947a2adde12d187a52b18b7218c541.zip |
settings.py: add 'proxy_images'
Diffstat (limited to 'youtube/comments.py')
-rw-r--r-- | youtube/comments.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/comments.py b/youtube/comments.py index 07d4b89..1d0e92a 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -92,7 +92,7 @@ def post_process_comments_info(comments_info): comment['author_url'] = concat_or_none( util.URL_ORIGIN, comment['author_url']) comment['author_avatar'] = concat_or_none( - '/', comment['author_avatar']) + settings.img_prefix, comment['author_avatar']) comment['permalink'] = concat_or_none(util.URL_ORIGIN, '/watch?v=', comments_info['video_id'], '&lc=', comment['id']) @@ -139,7 +139,7 @@ def post_process_comments_info(comments_info): comments_info['video_url'] = concat_or_none(util.URL_ORIGIN, '/watch?v=', comments_info['video_id']) - comments_info['video_thumbnail'] = concat_or_none('/i.ytimg.com/vi/', + comments_info['video_thumbnail'] = concat_or_none(settings.img_prefix, 'https://i.ytimg.com/vi/', comments_info['video_id'], '/mqdefault.jpg') |