projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9869860
)
[ntvde] Improve regex
author
Sergey M․
<dstftw@gmail.com>
Thu, 14 Jan 2016 16:12:24 +0000
(22:12 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 14 Jan 2016 16:12:24 +0000
(22:12 +0600)
youtube_dl/extractor/ntvde.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ntvde.py
b/youtube_dl/extractor/ntvde.py
index 8268eace75fd9f0bc9dc00195f4594a6cd2a9d8a..a83e85cb8109ef44468851355f2b522e22fc5831 100644
(file)
--- 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(