aboutsummaryrefslogtreecommitdiff
path: root/importer/providers/youtube_dl_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'importer/providers/youtube_dl_base.py')
-rw-r--r--importer/providers/youtube_dl_base.py5
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