summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2018-09-01 01:59:13 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2018-09-01 01:59:13 +0200
commited6919e7371b3da66c10e4c5768816e81f4c5db3 (patch)
tree53e7c51894ae3791718f0140af70b0e2637274be
parent2b83da246375e6b37884aad9fe22ea8e461e20b3 (diff)
downloadyoutube-dl-ed6919e7371b3da66c10e4c5768816e81f4c5db3.tar.gz
youtube-dl-ed6919e7371b3da66c10e4c5768816e81f4c5db3.tar.xz
youtube-dl-ed6919e7371b3da66c10e4c5768816e81f4c5db3.zip
[ard] beta mediathek: make regexp for JSON more robust
-rw-r--r--youtube_dl/extractor/ard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py
index cff8ca4a5..dcb347849 100644
--- 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 = {