aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorgeorgekav <>2023-02-19 21:48:18 +0100
committergeorgekav <>2023-03-05 00:34:30 +0100
commiteca44aa950f82d518303e11c112267be2437abd0 (patch)
tree54d1a89584531c482256eddfac043876b783cb86 /ui
parentupgraded yt-dlp (diff)
downloadmetube-eca44aa950f82d518303e11c112267be2437abd0.tar.gz
metube-eca44aa950f82d518303e11c112267be2437abd0.tar.bz2
metube-eca44aa950f82d518303e11c112267be2437abd0.zip
Add support for opus and wav
Diffstat (limited to 'ui')
-rw-r--r--ui/src/app/app.component.ts2
-rw-r--r--ui/src/app/formats.ts32
2 files changed, 24 insertions, 10 deletions
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts
index 5cbb84c..5dbcd5b 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' || this.format == 'm4a';
+ return this.quality == 'audio' || this.format == 'mp3' || this.format == 'm4a' || this.format == 'opus' || this.format == 'wav'
}
getMatchingCustomDir() : Observable<string[]> {
diff --git a/ui/src/app/formats.ts b/ui/src/app/formats.ts
index 7668e49..81afe86 100644
--- a/ui/src/app/formats.ts
+++ b/ui/src/app/formats.ts
@@ -23,15 +23,6 @@ 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: [
@@ -43,6 +34,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: 'mp3',
text: 'MP3',
qualities: [
@@ -53,6 +53,20 @@ export const Formats: Format[] = [
],
},
{
+ id: 'opus',
+ text: 'OPUS',
+ qualities: [
+ { id: 'best', text: 'Best' },
+ ],
+ },
+ {
+ id: 'wav',
+ text: 'WAV',
+ qualities: [
+ { id: 'best', text: 'Best' },
+ ],
+ },
+ {
id: 'thumbnail',
text: 'Thumbnail',
qualities: [
bgstack15