mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 12:42:29 +03:00
add pattern for url like http://sports.cntv.cn
This commit is contained in:
parent
53cb97def5
commit
3c0df90d85
@ -35,6 +35,8 @@ def cntv_download(url, output_dir = '.', merge = True, info_only = False, **kwar
|
|||||||
id = r1(r'videoCenterId","(\w+)"', get_html(url))
|
id = r1(r'videoCenterId","(\w+)"', get_html(url))
|
||||||
elif re.match(r'http://xiyou.cntv.cn/v-[\w-]+\.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)
|
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:
|
else:
|
||||||
raise NotImplementedError(url)
|
raise NotImplementedError(url)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user