This commit is contained in:
Antonio J. Delgado 2024-12-28 20:11:54 +02:00
parent 9fd5352f2d
commit d544ecf12e

View file

@ -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