diff options
author | Alex <alexta69@gmail.com> | 2021-11-20 10:14:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-20 10:14:03 +0200 |
commit | f61ecc147636868027d957c8255903525022e198 (patch) | |
tree | f140c3c5ad806c197f1abcf259ad2db9bcc1323b /ui/src/app/formats.ts | |
parent | fix breakage after upgrade (diff) | |
parent | simplified format handling (diff) | |
download | metube-f61ecc147636868027d957c8255903525022e198.tar.gz metube-f61ecc147636868027d957c8255903525022e198.tar.bz2 metube-f61ecc147636868027d957c8255903525022e198.zip |
Merge pull request #73 from asuyou/mp3-support
Added simple MP3 support
Diffstat (limited to 'ui/src/app/formats.ts')
-rw-r--r-- | ui/src/app/formats.ts | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ui/src/app/formats.ts b/ui/src/app/formats.ts new file mode 100644 index 0000000..15be903 --- /dev/null +++ b/ui/src/app/formats.ts @@ -0,0 +1,46 @@ +export interface Format { + id: string; + text: string; + qualities: Quality[]; +} + +export interface Quality { + id: string; + text: string; +} + +export const Formats: Format[] = [ + { + id: 'any', + text: 'Any', + qualities: [ + { id: 'best', text: 'Best' }, + { id: '1440', text: '1440p' }, + { id: '1080', text: '1080p' }, + { id: '720', text: '720p' }, + { id: '480', text: '480p' }, + { id: 'audio', text: 'Audio Only' }, + ], + }, + { + id: 'mp4', + text: 'MP4', + qualities: [ + { id: 'best', text: 'Best' }, + { id: '1440', text: '1440p' }, + { id: '1080', text: '1080p' }, + { id: '720', text: '720p' }, + { id: '480', text: '480p' }, + ], + }, + { + id: 'mp3', + text: 'MP3', + qualities: [ + { id: 'best', text: 'Best' }, + { id: '320', text: '320 kbps' }, + { id: '192', text: '192 kbps' }, + { id: '128', text: '128 kbps' }, + ], + }, +]; |