From 799e57bba482dabb8b6e00b28a7a953615638131 Mon Sep 17 00:00:00 2001 From: codepoet80 Date: Tue, 5 Jan 2021 16:07:29 -0500 Subject: [PATCH] add support for retro devices --- app/ytdl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/ytdl.py b/app/ytdl.py index 80706db..5da8b06 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -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}]'