add support for retro devices
This commit is contained in:
parent
8e93c01c54
commit
799e57bba4
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ class Download:
|
||||||
self.download_dir = download_dir
|
self.download_dir = download_dir
|
||||||
if quality == 'best':
|
if quality == 'best':
|
||||||
self.format = None
|
self.format = None
|
||||||
|
elif quality == 'retro':
|
||||||
|
self.format = f'bestvideo[ext=mp4]+bestaudio[ext=aac]/best[ext=mp4]/best'
|
||||||
elif quality in ('1080p', '720p', '480p'):
|
elif quality in ('1080p', '720p', '480p'):
|
||||||
res = quality[:-1]
|
res = quality[:-1]
|
||||||
self.format = f'bestvideo[height<={res}]+bestaudio/best[height<={res}]'
|
self.format = f'bestvideo[height<={res}]+bestaudio/best[height<={res}]'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue