diff options
author | James Taylor <28744867+user234683@users.noreply.github.com> | 2020-10-12 09:37:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 09:37:54 -0700 |
commit | 641af53e2ea0cb7ea398631d13c804d7ac1e0a8a (patch) | |
tree | 7dfecaadce3cc58ddcc86e2cd9d5ef762563e9ce /youtube/local_playlist.py | |
parent | 2cfc6dec39ccdcc0c5fe2eea73f47b7040e51833 (diff) | |
parent | fd253d9e07fa34e2a22d28d445839147daca9ee0 (diff) | |
download | yt-local-641af53e2ea0cb7ea398631d13c804d7ac1e0a8a.tar.lz yt-local-641af53e2ea0cb7ea398631d13c804d7ac1e0a8a.tar.xz yt-local-641af53e2ea0cb7ea398631d13c804d7ac1e0a8a.zip |
Merge pull request #24 from zrose584/optional_proxy_images
settings.py: add 'proxy_images'
Diffstat (limited to 'youtube/local_playlist.py')
-rw-r--r-- | youtube/local_playlist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/local_playlist.py b/youtube/local_playlist.py index 3a058b3..891bb76 100644 --- a/youtube/local_playlist.py +++ b/youtube/local_playlist.py @@ -35,7 +35,7 @@ def add_to_playlist(name, video_info_list): file.write(info + "\n") missing_thumbnails.append(id) gevent.spawn(util.download_thumbnails, os.path.join(thumbnails_directory, name), missing_thumbnails) - + def get_local_playlist_videos(name, offset=0, amount=50): try: @@ -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'] = "/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']) |