1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[cctv] Do not fallback on video id extracted from URL

This commit is contained in:
Sergey M․ 2017-01-02 23:00:37 +07:00
parent ce7ccb1caa
commit 327caf661a
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -99,7 +99,7 @@ def _real_extract(self, url):
r'videoCenterId["\']\s*,\s*["\']([\da-fA-F]+)', r'videoCenterId["\']\s*,\s*["\']([\da-fA-F]+)',
r'"changePlayer\s*\(\s*["\']([\da-fA-F]+)', r'"changePlayer\s*\(\s*["\']([\da-fA-F]+)',
r'"load[Vv]ideo\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( data = self._download_json(
'http://vdn.apps.cntv.cn/api/getHttpVideoInfo.do', video_id, 'http://vdn.apps.cntv.cn/api/getHttpVideoInfo.do', video_id,