_find_json: default to None

This commit is contained in:
bashonly 2024-11-11 21:54:31 +00:00 committed by GitHub
parent cc186aa008
commit 3bb4fa5c40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,7 @@ class GoPlayIE(InfoExtractor):
def _find_json(self, s):
return self._search_json(
r'\w+\s*:\s*', s, 'next js data', None, contains_pattern=r'\[(?s:.+)\]', default=[])
r'\w+\s*:\s*', s, 'next js data', None, contains_pattern=r'\[(?s:.+)\]', default=None)
def _real_extract(self, url):
display_id = self._match_id(url)