diff options
author | ashnitman <alex.shnitman@cyberark.com> | 2021-01-12 20:12:21 +0200 |
---|---|---|
committer | ashnitman <alex.shnitman@cyberark.com> | 2021-01-12 20:12:21 +0200 |
commit | 490f679b388c17547f0563401839df0dc942bd0d (patch) | |
tree | dd8f0c9835110c614e7950453dfcc2475d0a67be | |
parent | upgrade dependencies (diff) | |
download | metube-490f679b388c17547f0563401839df0dc942bd0d.tar.gz metube-490f679b388c17547f0563401839df0dc942bd0d.tar.bz2 metube-490f679b388c17547f0563401839df0dc942bd0d.zip |
add 1440p quality (closes #11)
-rw-r--r-- | app/ytdl.py | 2 | ||||
-rw-r--r-- | ui/src/app/app.component.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/ytdl.py b/app/ytdl.py index 76c0f73..3f684d8 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -36,7 +36,7 @@ class Download: self.download_dir = download_dir
if quality == 'best':
self.format = None
- elif quality in ('1080p', '720p', '480p'):
+ elif quality in ('1440p', '1080p', '720p', '480p'):
res = quality[:-1]
self.format = f'bestvideo[height<={res}]+bestaudio/best[height<={res}]'
elif quality.startswith('custom:'):
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts index 7bb8181..7a18d28 100644 --- a/ui/src/app/app.component.ts +++ b/ui/src/app/app.component.ts @@ -13,6 +13,7 @@ export class AppComponent implements AfterViewInit { addUrl: string; qualities: Array<Object> = [ {id: "best", text: "Best"}, + {id: "1440p", text: "1440p"}, {id: "1080p", text: "1080p"}, {id: "720p", text: "720p"}, {id: "480p", text: "480p"} |