From 95272d4df2d68ae78301068647db3a3323d3e8fb Mon Sep 17 00:00:00 2001 From: j Date: Wed, 19 Mar 2025 13:55:54 +0100 Subject: [PATCH] always use yt-dlp wrapper --- pandora/archive/external.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora/archive/external.py b/pandora/archive/external.py index 54c552465..7ec598156 100644 --- a/pandora/archive/external.py +++ b/pandora/archive/external.py @@ -143,8 +143,8 @@ def download(item_id, url, referer=None): has_audio = bool([fmt for fmt in formats['formats'] if fmt['resolution'] == 'audio only']) has_video = bool([fmt for fmt in formats['formats'] if 'x' in fmt['resolution']]) - cmd = [ - 'yt-dlp', '-q', url, + cmd = YT_DLP + [ + '-q', url, '-o', '%(title)80s.%(ext)s' ] if referer: @@ -167,8 +167,8 @@ def download(item_id, url, referer=None): stderr=subprocess.PIPE, close_fds=True) stdout, stderr = p.communicate() if stderr and b'Requested format is not available.' in stderr: - cmd = [ - 'yt-dlp', '-q', url, + cmd = YT_DLP + [ + '-q', url, '-o', '%(title)80s.%(ext)s' ] if referer: