diff options
| author | Astounds <kirito@disroot.org> | 2026-04-25 01:02:17 -0500 |
|---|---|---|
| committer | Astounds <kirito@disroot.org> | 2026-04-25 01:02:17 -0500 |
| commit | 50ad959a8051fec95f26b573f9fe067bdf3fdf6a (patch) | |
| tree | 4d94f63cf9adb951d4200b0f2bb0c762d45297c4 /youtube/local_playlist.py | |
| parent | a0f315be51ef121618e73d5b450c8616c0d11d21 (diff) | |
| download | yt-local-50ad959a8051fec95f26b573f9fe067bdf3fdf6a.tar.lz yt-local-50ad959a8051fec95f26b573f9fe067bdf3fdf6a.tar.xz yt-local-50ad959a8051fec95f26b573f9fe067bdf3fdf6a.zip | |
refactor: replace string concatenations with f-strings
Diffstat (limited to 'youtube/local_playlist.py')
| -rw-r--r-- | youtube/local_playlist.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube/local_playlist.py b/youtube/local_playlist.py index e9b0b20..44207d2 100644 --- a/youtube/local_playlist.py +++ b/youtube/local_playlist.py @@ -92,9 +92,7 @@ def add_extra_info_to_videos(videos, playlist_name): util.add_extra_html_info(video) if video['id'] + '.jpg' in thumbnails: video['thumbnail'] = ( - '/https://youtube.com/data/playlist_thumbnails/' - + playlist_name - + '/' + video['id'] + '.jpg') + f'/https://youtube.com/data/playlist_thumbnails/{playlist_name}/{video["id"]}.jpg') else: video['thumbnail'] = util.get_thumbnail_url(video['id']) missing_thumbnails.append(video['id']) |
