aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-01-14 22:12:24 +0600
committerSergey M․ <dstftw@gmail.com>2016-01-14 22:12:24 +0600
commit6b559c2fbcf70158bd84b3b5892ecd5fc4b03e91 (patch)
treeac8984e080f608f9254b901a9cb527551219bd9b
parent986986064ec102b0d97b4ab008ae38ede6358796 (diff)
[ntvde] Improve regex
-rw-r--r--youtube_dl/extractor/ntvde.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ntvde.py b/youtube_dl/extractor/ntvde.py
index 8268eace7..a83e85cb8 100644
--- a/youtube_dl/extractor/ntvde.py
+++ b/youtube_dl/extractor/ntvde.py
@@ -35,7 +35,7 @@ class NTVDeIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
info = self._parse_json(self._search_regex(
- r'(?s)ntv.pageInfo.article =\s(\{.*?\});', webpage, 'info'),
+ r'(?s)ntv\.pageInfo\.article\s*=\s*(\{.*?\});', webpage, 'info'),
video_id, transform_source=js_to_json)
timestamp = int_or_none(info.get('publishedDateAsUnixTimeStamp'))
vdata = self._parse_json(self._search_regex(