aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/yt_data_extract/everything_else.py
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-06-18 19:45:34 -0400
committerJesus E <heckyel@riseup.net>2023-06-18 19:45:34 -0400
commitcd7624f2cb94ba3c8776b769f294b8a9ad8d7487 (patch)
treec77f6ff8825aa38f96124936c1f910eb6825da78 /youtube/yt_data_extract/everything_else.py
parent5d5322587414dcc12572a6e854fbfe072b7e63b6 (diff)
downloadyt-local-cd7624f2cb94ba3c8776b769f294b8a9ad8d7487.tar.lz
yt-local-cd7624f2cb94ba3c8776b769f294b8a9ad8d7487.tar.xz
yt-local-cd7624f2cb94ba3c8776b769f294b8a9ad8d7487.zip
Set hqdefault thumnail images
Diffstat (limited to 'youtube/yt_data_extract/everything_else.py')
-rw-r--r--youtube/yt_data_extract/everything_else.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/yt_data_extract/everything_else.py b/youtube/yt_data_extract/everything_else.py
index 745d08f..281bc03 100644
--- a/youtube/yt_data_extract/everything_else.py
+++ b/youtube/yt_data_extract/everything_else.py
@@ -168,7 +168,7 @@ def extract_playlist_metadata(polymer_json):
if metadata['first_video_id'] is None:
metadata['thumbnail'] = None
else:
- metadata['thumbnail'] = 'https://i.ytimg.com/vi/' + metadata['first_video_id'] + '/mqdefault.jpg'
+ metadata['thumbnail'] = f"https://i.ytimg.com/vi/{metadata['first_video_id']}/hqdefault.jpg"
metadata['video_count'] = extract_int(header.get('numVideosText'))
metadata['description'] = extract_str(header.get('descriptionText'), default='')