From 47d59970a7ddf922e9a2efe9a1e2b52472e36040 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Mon, 9 Dec 2024 20:41:44 -0800 Subject: [PATCH] ... if isyoutubehost --- brozzler/ydl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brozzler/ydl.py b/brozzler/ydl.py index 35c509f..7a86fb8 100644 --- a/brozzler/ydl.py +++ b/brozzler/ydl.py @@ -326,7 +326,7 @@ def _remember_videos(page, pushed_videos=None): def _try_youtube_dl(worker, ydl, site, page): - max_attempts = 4 if YTDLP_PROXY else 1 + max_attempts = 4 if isyoutubehost(ydl.url) else 1 attempt = 0 while attempt < max_attempts: try: