Browse Source

[ard] beta mediathek: make regexp for JSON more robust

master
Philipp Hagemeister 6 years ago
parent
commit
ed6919e737
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/ard.py

2
youtube_dl/extractor/ard.py

@ -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…
Cancel
Save