From 0b2650963788c8eafda6bdffa0c6132cde220b1a Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Wed, 10 Apr 2024 13:41:03 -0700 Subject: [PATCH] more ytdlp_url --- brozzler/ydl.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/brozzler/ydl.py b/brozzler/ydl.py index 557c107..1e8ae30 100644 --- a/brozzler/ydl.py +++ b/brozzler/ydl.py @@ -337,8 +337,9 @@ def _remember_videos(page, fetches, pushed_videos=None): def _try_youtube_dl(worker, ydl, site, page): + ytdlp_url = page.redirect_url if page.redirect_url else page.url try: - logging.info("trying yt-dlp on %s", page) + logging.info("trying yt-dlp on %s", ytdlp_url) with brozzler.thread_accept_exceptions(): # we do whatwg canonicalization here to avoid "