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/subscriptions.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/subscriptions.py')
-rw-r--r-- | youtube/subscriptions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py index 6f75578..a661f83 100644 --- a/youtube/subscriptions.py +++ b/youtube/subscriptions.py @@ -820,6 +820,7 @@ def get_subscriptions_page(): videos, number_of_videos_in_db = _get_videos(cursor, 60, (page - 1)*60, tag) for video in videos: video['thumbnail'] = util.URL_ORIGIN + '/data/subscription_thumbnails/' + video['id'] + '.jpg' + if not settings.proxy_images: video['thumbnail'] = video['thumbnail'][1:] video['type'] = 'video' video['item_size'] = 'small' util.add_extra_html_info(video) |