diff options
author | asuyou <asuyou@users.noreply.github.com> | 2021-10-28 11:19:17 +0100 |
---|---|---|
committer | asuyou <asuyou@users.noreply.github.com> | 2021-10-28 11:19:17 +0100 |
commit | d0518142599d326bac12a66e0173eb0e2da2c66d (patch) | |
tree | 636f6f54b93deda350af0389e93283e4a08af660 /ui/src/app/formats.ts | |
parent | Added simple MP3 support (diff) | |
download | metube-d0518142599d326bac12a66e0173eb0e2da2c66d.tar.gz metube-d0518142599d326bac12a66e0173eb0e2da2c66d.tar.bz2 metube-d0518142599d326bac12a66e0173eb0e2da2c66d.zip |
Added quality choice based on format
Diffstat (limited to 'ui/src/app/formats.ts')
-rw-r--r-- | ui/src/app/formats.ts | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ui/src/app/formats.ts b/ui/src/app/formats.ts new file mode 100644 index 0000000..5264cd0 --- /dev/null +++ b/ui/src/app/formats.ts @@ -0,0 +1,39 @@ +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: '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: '128', text: '128 kbps' }, + { id: '192', text: '192 kbps' }, + { id: '320', text: '320 kbps' }, + ], + }, +]; |