projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
327caf6
)
[cctv] Relax _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Mon, 2 Jan 2017 16:15:38 +0000
(23:15 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 2 Jan 2017 16:18:44 +0000
(23:18 +0700)
youtube_dl/extractor/cctv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/cctv.py
b/youtube_dl/extractor/cctv.py
index f44256d3252cef6884076ba08280960036036474..d271cabad0c2e4cf99d7df30b0fad3c278fe754d 100644
(file)
--- 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',