diff options
author | Jesus E <heckyel@riseup.net> | 2023-06-18 19:45:34 -0400 |
---|---|---|
committer | Jesus E <heckyel@riseup.net> | 2023-06-18 19:45:34 -0400 |
commit | cd7624f2cb94ba3c8776b769f294b8a9ad8d7487 (patch) | |
tree | c77f6ff8825aa38f96124936c1f910eb6825da78 /youtube/subscriptions.py | |
parent | 5d5322587414dcc12572a6e854fbfe072b7e63b6 (diff) | |
download | yt-local-cd7624f2cb94ba3c8776b769f294b8a9ad8d7487.tar.lz yt-local-cd7624f2cb94ba3c8776b769f294b8a9ad8d7487.tar.xz yt-local-cd7624f2cb94ba3c8776b769f294b8a9ad8d7487.zip |
Set hqdefault thumnail images
Diffstat (limited to 'youtube/subscriptions.py')
-rw-r--r-- | youtube/subscriptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py index aa6101d..242510b 100644 --- a/youtube/subscriptions.py +++ b/youtube/subscriptions.py @@ -1018,7 +1018,7 @@ def serve_subscription_thumbnail(thumbnail): f.close() return flask.Response(image, mimetype='image/jpeg') - url = "https://i.ytimg.com/vi/" + video_id + "/mqdefault.jpg" + url = f"https://i.ytimg.com/vi/{video_id}/hqdefault.jpg" try: image = util.fetch_url(url, report_text="Saved thumbnail: " + video_id) except urllib.error.HTTPError as e: |