aboutsummaryrefslogtreecommitdiff
path: root/app/ytdl.py
diff options
context:
space:
mode:
authorAlex Shnitman <alexta69@gmail.com>2021-11-20 10:12:08 +0200
committerAlex Shnitman <alexta69@gmail.com>2021-11-20 10:12:08 +0200
commitf52bea74d335cc84b9d08ebe485e620a8309b2a3 (patch)
treef140c3c5ad806c197f1abcf259ad2db9bcc1323b /app/ytdl.py
parentMerge branch 'master' of https://github.com/alexta69/metube into mp3-support (diff)
downloadmetube-f52bea74d335cc84b9d08ebe485e620a8309b2a3.tar.gz
metube-f52bea74d335cc84b9d08ebe485e620a8309b2a3.tar.bz2
metube-f52bea74d335cc84b9d08ebe485e620a8309b2a3.zip
simplified format handling
Diffstat (limited to 'app/ytdl.py')
-rw-r--r--app/ytdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/ytdl.py b/app/ytdl.py
index 688744b..e0267d7 100644
--- a/app/ytdl.py
+++ b/app/ytdl.py
@@ -159,7 +159,7 @@ class DownloadQueue:
elif etype == 'video' or etype.startswith('url') and 'id' in entry and 'title' in entry:
if entry['id'] not in self.queue:
dl = DownloadInfo(entry['id'], entry['title'], entry.get('webpage_url') or entry['url'], quality, format)
- dldirectory = self.config.DOWNLOAD_DIR if quality != 'audio' else self.config.AUDIO_DOWNLOAD_DIR
+ dldirectory = self.config.DOWNLOAD_DIR if (quality != 'audio' and format != 'mp3') else self.config.AUDIO_DOWNLOAD_DIR
self.queue[entry['id']] = Download(dldirectory, self.config.OUTPUT_TEMPLATE, quality, format, self.config.YTDL_OPTIONS, dl)
self.event.set()
await self.notifier.added(dl)
bgstack15