diff options
author | georgekav <> | 2023-02-20 14:35:55 +0100 |
---|---|---|
committer | georgekav <> | 2023-02-20 14:35:55 +0100 |
commit | 07be2c054f40ee099506d79af242c6a51749a572 (patch) | |
tree | 75416c46029615231e8bc09403a125352ac63482 | |
parent | Add M4A backend support. (diff) | |
download | metube-07be2c054f40ee099506d79af242c6a51749a572.tar.gz metube-07be2c054f40ee099506d79af242c6a51749a572.tar.bz2 metube-07be2c054f40ee099506d79af242c6a51749a572.zip |
Add missing m4a checks for audio file
-rw-r--r-- | app/ytdl.py | 2 | ||||
-rw-r--r-- | ui/src/app/app.component.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/ytdl.py b/app/ytdl.py index 0a74b14..3c21e0e 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -234,7 +234,7 @@ class DownloadQueue: if not self.queue.exists(entry['id']):
dl = DownloadInfo(entry['id'], entry['title'], entry.get('webpage_url') or entry['url'], quality, format, folder)
# Keep consistent with frontend
- base_directory = self.config.DOWNLOAD_DIR if (quality != 'audio' and format != 'mp3') else self.config.AUDIO_DOWNLOAD_DIR
+ base_directory = self.config.DOWNLOAD_DIR if (quality != 'audio' and format not in ("m4a", "mp3")) else self.config.AUDIO_DOWNLOAD_DIR
if folder:
if not self.config.CUSTOM_DIRS:
return {'status': 'error', 'msg': f'A folder for the download was specified but CUSTOM_DIRS is not true in the configuration.'}
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts index 7038b68..5cbb84c 100644 --- a/ui/src/app/app.component.ts +++ b/ui/src/app/app.component.ts @@ -94,7 +94,7 @@ export class AppComponent implements AfterViewInit { } isAudioType() { - return this.quality == 'audio' || this.format == 'mp3'; + return this.quality == 'audio' || this.format == 'mp3' || this.format == 'm4a'; } getMatchingCustomDir() : Observable<string[]> { |