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

pull/8/head
Philipp Hagemeister 2018-09-01 01:59:13 +02:00
rodzic 2b83da2463
commit ed6919e737
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 = {