diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-06-05 00:41:15 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-06-05 00:41:15 -0700 |
commit | ae5fd9eb009c6522e7d7971e0bdea57faaaf2b3c (patch) | |
tree | 424a1c1e3923edd99b7b14a8ca6492b97c1b96f8 /youtube/youtube.py | |
parent | ccb795e31f2f9944b1c8b061906eb752009f8ea7 (diff) | |
download | yt-local-ae5fd9eb009c6522e7d7971e0bdea57faaaf2b3c.tar.lz yt-local-ae5fd9eb009c6522e7d7971e0bdea57faaaf2b3c.tar.xz yt-local-ae5fd9eb009c6522e7d7971e0bdea57faaaf2b3c.zip |
Make thumbnails work and other stuff
Diffstat (limited to 'youtube/youtube.py')
-rw-r--r-- | youtube/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/youtube.py b/youtube/youtube.py index 4ec7962..c629bbb 100644 --- a/youtube/youtube.py +++ b/youtube/youtube.py @@ -61,7 +61,7 @@ def youtube(env, start_response): start_response('200 OK', (('Content-type',mime_type),) ) return f.read() - elif path.startswith("/data/playlist_thumbnails/"): + elif path.startswith('/data/playlist_thumbnails/') or path.startswith('/data/subscription_thumbnails/'): with open(os.path.join(settings.data_dir, os.path.normpath(path[6:])), 'rb') as f: start_response('200 OK', (('Content-type', "image/jpeg"),) ) return f.read() |