mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-18 00:24:04 -05:00
[ard] beta mediathek: make regexp for JSON more robust
This commit is contained in:
parent
2b83da2463
commit
ed6919e737
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ def _real_extract(self, url):
|
||||||
display_id = mobj.group('display_id')
|
display_id = mobj.group('display_id')
|
||||||
|
|
||||||
webpage = self._download_webpage(url, 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)
|
data = self._parse_json(data_json, display_id)
|
||||||
|
|
||||||
res = {
|
res = {
|
||||||
|
|
Loading…
Reference in a new issue