aboutsummaryrefslogtreecommitdiff
path: root/ui/src
diff options
context:
space:
mode:
authorAlex <alexta69@gmail.com>2023-02-28 22:02:25 +0200
committerGitHub <noreply@github.com>2023-02-28 22:02:25 +0200
commitb2adc22ed9b0e0ec3ac8f13ce65ef71b89258886 (patch)
tree75416c46029615231e8bc09403a125352ac63482 /ui/src
parentupgraded yt-dlp (diff)
parentAdd missing m4a checks for audio file (diff)
downloadmetube-b2adc22ed9b0e0ec3ac8f13ce65ef71b89258886.tar.gz
metube-b2adc22ed9b0e0ec3ac8f13ce65ef71b89258886.tar.bz2
metube-b2adc22ed9b0e0ec3ac8f13ce65ef71b89258886.zip
Merge pull request #221 from georgekav2/feature/m4a_support
Add m4a support and explicit audio format
Diffstat (limited to 'ui/src')
-rw-r--r--ui/src/app/app.component.ts2
-rw-r--r--ui/src/app/formats.ts9
2 files changed, 10 insertions, 1 deletions
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[]> {
diff --git a/ui/src/app/formats.ts b/ui/src/app/formats.ts
index a3bf3e8..7668e49 100644
--- a/ui/src/app/formats.ts
+++ b/ui/src/app/formats.ts
@@ -23,6 +23,15 @@ export const Formats: Format[] = [
],
},
{
+ id: 'm4a',
+ text: 'M4A',
+ qualities: [
+ { id: 'best', text: 'Best' },
+ { id: '192', text: '192 kbps' },
+ { id: '128', text: '128 kbps' },
+ ],
+ },
+ {
id: 'mp4',
text: 'MP4',
qualities: [
bgstack15