mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-09 14:25:39 +08:00
[ard] beta mediathek: make regexp for JSON more robust
This commit is contained in:
parent
e8bd053211
commit
5c29332919
@ -307,7 +307,7 @@ class ARDBetaMediathekIE(InfoExtractor):
|
||||
display_id = mobj.group('display_id')
|
||||
|
||||
webpage = self._download_webpage(url, display_id)
|
||||
data_json = self._search_regex(r'window\.__APOLLO_STATE__\s*=\s*(\{.*);', webpage, 'json')
|
||||
data_json = self._search_regex(r'window\.__APOLLO_STATE__\s*=\s*(\{.*);\n', webpage, 'json')
|
||||
data = self._parse_json(data_json, display_id)
|
||||
|
||||
res = {
|
||||
|
Loading…
Reference in New Issue
Block a user