projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7ccb1
)
[cctv] Do not fallback on video id extracted from URL
author
Sergey M․
<dstftw@gmail.com>
Mon, 2 Jan 2017 16:00:37 +0000
(23:00 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 2 Jan 2017 16:00:37 +0000
(23:00 +0700)
youtube_dl/extractor/cctv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/cctv.py
b/youtube_dl/extractor/cctv.py
index c3d163cdedcdc2c32cff456a95d6050ca18a308d..f44256d3252cef6884076ba08280960036036474 100644
(file)
--- a/
youtube_dl/extractor/cctv.py
+++ b/
youtube_dl/extractor/cctv.py
@@
-99,7
+99,7
@@
class CCTVIE(InfoExtractor):
r'videoCenterId["\']\s*,\s*["\']([\da-fA-F]+)',
r'"changePlayer\s*\(\s*["\']([\da-fA-F]+)',
r'"load[Vv]ideo\s*\(\s*["\']([\da-fA-F]+)'],
- webpage, 'video id'
, default=video_id
)
+ webpage, 'video id')
data = self._download_json(
'http://vdn.apps.cntv.cn/api/getHttpVideoInfo.do', video_id,