add 1440p quality (closes #11)

This commit is contained in:
ashnitman 2021-01-12 20:12:21 +02:00
parent ac9e4b1db4
commit 490f679b38
2 changed files with 2 additions and 1 deletions

View file

@ -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:'):

View file

@ -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"}