diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/ytdl.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/ytdl.py b/app/ytdl.py index 3f684d8..dfdc4fd 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -38,7 +38,9 @@ class Download: self.format = None
elif quality in ('1440p', '1080p', '720p', '480p'):
res = quality[:-1]
- self.format = f'bestvideo[height<={res}]+bestaudio/best[height<={res}]'
+ self.format = f'bestvideo[height<={res}]+bestaudio'
+ elif quality == 'audio':
+ self.format = 'bestaudio'
elif quality.startswith('custom:'):
self.format = quality[7:]
else:
|