From e7ebec983de922318eab4d0207176f19e6b91f6d Mon Sep 17 00:00:00 2001 From: bashonly Date: Mon, 3 Jun 2024 16:18:36 -0500 Subject: [PATCH] [ie/instagram] Do not botch the error handling Authored by: bashonly --- yt_dlp/extractor/instagram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/instagram.py b/yt_dlp/extractor/instagram.py index 46f9cd681..48aa47c68 100644 --- a/yt_dlp/extractor/instagram.py +++ b/yt_dlp/extractor/instagram.py @@ -453,7 +453,7 @@ def _real_extract(self, url): else: self.report_warning('Main webpage is locked behind the login page. Retrying with embed webpage (some metadata might be missing).') webpage = self._download_webpage( - f'{url}/embed/', video_id, note='Downloading embed webpage', fatal=False) + f'{url}/embed/', video_id, note='Downloading embed webpage', fatal=False) or '' additional_data = self._search_json( r'window\.__additionalDataLoaded\s*\(\s*[^,]+,', webpage, 'additional data', video_id, fatal=False) if not additional_data and not media: