From cd7624f2cb94ba3c8776b769f294b8a9ad8d7487 Mon Sep 17 00:00:00 2001 From: Jesus E Date: Sun, 18 Jun 2023 19:45:34 -0400 Subject: Set hqdefault thumnail images --- youtube/subscriptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/subscriptions.py') 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: -- cgit v1.2.3