1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-07-05 19:40:08 +02:00

[ie/instagram] Do not botch the error handling

Authored by: bashonly
This commit is contained in:
bashonly 2024-06-03 16:18:36 -05:00
parent 5406c4ba58
commit e7ebec983d
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -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: