mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-26 12:44:23 +00:00
_find_json: default to None
This commit is contained in:
parent
cc186aa008
commit
3bb4fa5c40
@ -78,7 +78,7 @@ class GoPlayIE(InfoExtractor):
|
|||||||
|
|
||||||
def _find_json(self, s):
|
def _find_json(self, s):
|
||||||
return self._search_json(
|
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):
|
def _real_extract(self, url):
|
||||||
display_id = self._match_id(url)
|
display_id = self._match_id(url)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user