projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b83da2
)
[ard] beta mediathek: make regexp for JSON more robust
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 31 Aug 2018 23:59:13 +0000
(
01:59
+0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 31 Aug 2018 23:59:13 +0000
(
01:59
+0200)
youtube_dl/extractor/ard.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ard.py
b/youtube_dl/extractor/ard.py
index cff8ca4a54a80915ea6a29cd76ca82762e81dd37..dcb347849a10618d43d6fa14941a95154bda3e76 100644
(file)
--- a/
youtube_dl/extractor/ard.py
+++ b/
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 = {