diff options
-rw-r--r-- | youtube/local_playlist.py | 2 | ||||
-rw-r--r-- | youtube/subscriptions.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/youtube/local_playlist.py b/youtube/local_playlist.py index 857ed24..394e7db 100644 --- a/youtube/local_playlist.py +++ b/youtube/local_playlist.py @@ -52,7 +52,7 @@ def get_local_playlist_videos(name, offset=0, amount=50): try: info = json.loads(video_json) if info['id'] + ".jpg" in thumbnails: - info['thumbnail'] = settings.img_prefix + "https://youtube.com/data/playlist_thumbnails/" + name + "/" + info['id'] + ".jpg" + info['thumbnail'] = "https://youtube.com/data/playlist_thumbnails/" + name + "/" + info['id'] + ".jpg" else: info['thumbnail'] = util.get_thumbnail_url(info['id']) missing_thumbnails.append(info['id']) diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py index 219a526..6f75578 100644 --- a/youtube/subscriptions.py +++ b/youtube/subscriptions.py @@ -820,8 +820,6 @@ 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) |