aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-02 23:15:38 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-02 23:18:44 +0700
commit3783a5ccba17f2c7e056a2ac5c9c38a61979e452 (patch)
tree7e6f99c53abb15c29ddf97061ca505ae5851f4c1
parent327caf661a2b65b4cc09550f471781918cb3b9bf (diff)
[cctv] Relax _VALID_URL
-rw-r--r--youtube_dl/extractor/cctv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cctv.py b/youtube_dl/extractor/cctv.py
index f44256d32..d271cabad 100644
--- a/youtube_dl/extractor/cctv.py
+++ b/youtube_dl/extractor/cctv.py
@@ -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',