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/yt_data_extract/everything_else.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/yt_data_extract') 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='') -- cgit v1.2.3