non-fatal tho

Authored by: bashonly
This commit is contained in:
bashonly 2024-05-05 17:45:45 -05:00
parent 1be953da3a
commit 546a94e04b
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class YouPornIE(InfoExtractor):
info_url = traverse_obj(player_vars, (
'mediaDefinitions', lambda _, v: v['format'] == type_, 'videoUrl', {url_or_none}, any))
if not info_url:
return None
return []
return traverse_obj(
self._download_json(info_url, video_id, f'Downloading {type_} info JSON', fatal=False),
lambda _, v: v['format'] == type_ and url_or_none(v['videoUrl']))