]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[cctv] Do not fallback on video id extracted from URL
authorSergey M․ <dstftw@gmail.com>
Mon, 2 Jan 2017 16:00:37 +0000 (23:00 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 2 Jan 2017 16:00:37 +0000 (23:00 +0700)
youtube_dl/extractor/cctv.py

index c3d163cdedcdc2c32cff456a95d6050ca18a308d..f44256d3252cef6884076ba08280960036036474 100644 (file)
@@ -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,