]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[cctv] Relax _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Mon, 2 Jan 2017 16:15:38 +0000 (23:15 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 2 Jan 2017 16:18:44 +0000 (23:18 +0700)
youtube_dl/extractor/cctv.py

index f44256d3252cef6884076ba08280960036036474..d271cabad0c2e4cf99d7df30b0fad3c278fe754d 100644 (file)
@@ -14,7 +14,7 @@ from ..utils import (
 
 class CCTVIE(InfoExtractor):
     IE_DESC = '央视网'
-    _VALID_URL = r'https?://(?:[^/]+)\.(?:cntv|cctv)\.(?:com|cn)/(?:[^/]+/)*?(?P<id>[^/?#&]+?)(?:/index)?\.s?html'
+    _VALID_URL = r'https?://(?:[^/]+)\.(?:cntv|cctv)\.(?:com|cn)/(?:[^/]+/)*?(?P<id>[^/?#&]+?)(?:/index)?(?:\.s?html|[?#&]|$)'
     _TESTS = [{
         'url': 'http://sports.cntv.cn/2016/02/12/ARTIaBRxv4rTT1yWf1frW2wi160212.shtml',
         'md5': 'd61ec00a493e09da810bf406a078f691',