From 8935fc26b3655fd2cbe4eeb635ad3f8674eac637 Mon Sep 17 00:00:00 2001 From: Tyler Flowers Date: Sun, 22 Mar 2026 17:16:28 -0400 Subject: [PATCH] Add missing variable in _handle_extract_dl_error() --- backend/download/src/yt_dlp_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/download/src/yt_dlp_base.py b/backend/download/src/yt_dlp_base.py index 20e98522..e739c88d 100644 --- a/backend/download/src/yt_dlp_base.py +++ b/backend/download/src/yt_dlp_base.py @@ -158,7 +158,7 @@ class YtWrap: return True, True - def _handle_extract_dl_error(self, err, attempt, max_attempts) -> tuple[int, bool]: + def _handle_extract_dl_error(self, url, err, attempt, max_attempts) -> tuple[int, bool]: """ handle download errors in extract() returns attempt count, continue, error @@ -204,6 +204,7 @@ class YtWrap: return None, str(err) except yt_dlp.utils.DownloadError as err: attempt, cont, error = self._handle_extract_dl_error( + url = url, err = err, attempt = attempt, max_attempts = max_attempts