From f3771c1c0fab9a29a9302a22f4f4abcb99a7e659 Mon Sep 17 00:00:00 2001 From: bashonly Date: Tue, 11 Jun 2024 23:50:17 -0500 Subject: [PATCH] [ie/weibo] Add `_download_webpage_handle` comment Authored by: bashonly --- yt_dlp/extractor/weibo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yt_dlp/extractor/weibo.py b/yt_dlp/extractor/weibo.py index 3e8290982..b5c0e926f 100644 --- a/yt_dlp/extractor/weibo.py +++ b/yt_dlp/extractor/weibo.py @@ -52,6 +52,7 @@ def _update_visitor_cookies(self, visitor_url, video_id): }) def _weibo_download_json(self, url, video_id, *args, fatal=True, note='Downloading JSON metadata', **kwargs): + # XXX: Always fatal; _download_webpage_handle only returns False (not a tuple) on error webpage, urlh = self._download_webpage_handle(url, video_id, *args, fatal=fatal, note=note, **kwargs) if urllib.parse.urlparse(urlh.url).netloc == 'passport.weibo.com': self._update_visitor_cookies(urlh.url, video_id)