fix file name
This commit is contained in:
parent
c092abfa5d
commit
d54da4b482
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class GetPeertubeVideos:
|
|||
self._write_downloaded_items()
|
||||
elif 'video' in selected['type']:
|
||||
file_extension = selected['type'].replace('video/', '.')
|
||||
file_name = os.path.join(self.config['download_dir'], item['title'], file_extension)
|
||||
file_name = os.path.join(self.config['download_dir'], f"{item['title']}{file_extension}")
|
||||
self._log.info(
|
||||
"Downloading video '%s' as '%s'...",
|
||||
selected['url'],
|
||||
|
|
Loading…
Reference in a new issue