add support for retro devices

This commit is contained in:
codepoet80 2021-01-05 16:07:29 -05:00
parent 8e93c01c54
commit 799e57bba4

View file

@ -36,6 +36,8 @@ class Download:
self.download_dir = download_dir
if quality == 'best':
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'):
res = quality[:-1]
self.format = f'bestvideo[height<={res}]+bestaudio/best[height<={res}]'