mirror of
https://github.com/alexta69/metube.git
synced 2025-04-03 20:27:36 +03:00
add 1440p quality (closes #11)
This commit is contained in:
parent
ac9e4b1db4
commit
490f679b38
2 changed files with 2 additions and 1 deletions
|
@ -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:'):
|
||||
|
|
|
@ -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"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue