diff options
author | gabrielgio <gabriel.giovanini@pm.me> | 2021-07-26 22:28:05 +0200 |
---|---|---|
committer | gabrielgio <gabriel.giovanini@pm.me> | 2021-07-26 22:36:04 +0200 |
commit | c8bd60648d193f85479d5f380b05bb6d4394ffda (patch) | |
tree | bf28d510da708ce45c39a6e3accdc514a6b2cd1c /importer/providers/youtube_dl_base.py | |
parent | bf0cde0b0bb77cd75db03327a461abf26b90c465 (diff) | |
download | reddit-nextcloud-importer-c8bd60648d193f85479d5f380b05bb6d4394ffda.tar.gz reddit-nextcloud-importer-c8bd60648d193f85479d5f380b05bb6d4394ffda.tar.bz2 reddit-nextcloud-importer-c8bd60648d193f85479d5f380b05bb6d4394ffda.zip |
fix: Various fixes
Diffstat (limited to 'importer/providers/youtube_dl_base.py')
-rw-r--r-- | importer/providers/youtube_dl_base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/importer/providers/youtube_dl_base.py b/importer/providers/youtube_dl_base.py index 3bb2fb8..3d67738 100644 --- a/importer/providers/youtube_dl_base.py +++ b/importer/providers/youtube_dl_base.py @@ -18,6 +18,7 @@ class YoutubeDlProviderBase(ProviderBase): def download(self): ydl_opts = { + 'quiet': True, 'format': self.format, 'merge_output_format': self.merge_format_output, 'outtmpl': self.output_template @@ -28,9 +29,9 @@ class YoutubeDlProviderBase(ProviderBase): if info.get('_type', None) == 'playlist': for entry in info['entries']: r = ydl.prepare_filename(entry) - self.paths.append(f'{os.path.splitext(r)[0]}.mp4') + self.paths.append(f'{os.path.splitext(r)[0]}.{entry["ext"]}') else: r = ydl.prepare_filename(info) - self.paths.append(f'{os.path.splitext(r)[0]}.mp4') + self.paths.append(f'{os.path.splitext(r)[0]}.{info["ext"]}') self.downloaded = True |