From d544ecf12e073b5f6367411d251a586c5984d612 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 28 Dec 2024 20:11:54 +0200 Subject: [PATCH] add dot --- get_peertube_videos/get_peertube_videos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_peertube_videos/get_peertube_videos.py b/get_peertube_videos/get_peertube_videos.py index 1d3391e..d608fc9 100644 --- a/get_peertube_videos/get_peertube_videos.py +++ b/get_peertube_videos/get_peertube_videos.py @@ -143,7 +143,7 @@ class GetPeertubeVideos: sel_thumb = thumb if 'url' in sel_thumb: split_url = sel_thumb['url'].split('.') - thumb_file_name = file_name.replace(file_extension, split_url[len(split_url)-1]) + thumb_file_name = file_name.replace(file_extension, f".{split_url[len(split_url)-1]}") full_thumb_file_name = os.path.join(self.config['download_dir'], thumb_file_name) result = self.session.get(sel_thumb['url']) thumb_bytes = result.content