add pattern for url like http://sports.cntv.cn

This commit is contained in:
caorong 2016-04-05 13:37:51 +08:00
parent 53cb97def5
commit 3c0df90d85

View File

@ -35,6 +35,8 @@ def cntv_download(url, output_dir = '.', merge = True, info_only = False, **kwar
id = r1(r'videoCenterId","(\w+)"', get_html(url))
elif re.match(r'http://xiyou.cntv.cn/v-[\w-]+\.html', url):
id = r1(r'http://xiyou.cntv.cn/v-([\w-]+)\.html', url)
elif re.match(r'http://sports.cntv.cn', url):
id = r1(r'var _guid="(\w+)"', get_html(url))
else:
raise NotImplementedError(url)