From 4c415c6b5da25c082bc8e4170c688648344acd73 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 18 Nov 2023 11:50:08 +0100 Subject: [PATCH] get the right resolution --- pandora/archive/external.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/external.py b/pandora/archive/external.py index da6c47949..1464b0a1a 100644 --- a/pandora/archive/external.py +++ b/pandora/archive/external.py @@ -111,7 +111,7 @@ def download(item_id, url, referer=None): format = settings.CONFIG['video']['formats'][0] if format == 'mp4': cmd += [ - '-f', 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio', + '-f', 'bestvideo[height<=%s][ext=mp4]+bestaudio[ext=m4a]' % max_resolution, '--merge-output-format', 'mp4' ] elif format == 'webm':