diff --git a/src/you_get/extractors/cntv.py b/src/you_get/extractors/cntv.py index 52b2ba58..211580c6 100644 --- a/src/you_get/extractors/cntv.py +++ b/src/you_get/extractors/cntv.py @@ -28,7 +28,9 @@ def cntv_download_by_id(id, title = None, output_dir = '.', merge = True, info_o download_urls(urls, title, ext, size, output_dir = output_dir, merge = merge) def cntv_download(url, output_dir = '.', merge = True, info_only = False, **kwargs): - if re.match(r'http://\w+\.cntv\.cn/(\w+/\w+/(classpage/video/)?)?\d+/\d+\.shtml', url) or re.match(r'http://\w+.cntv.cn/(\w+/)*VIDE\d+.shtml', url): + if re.match(r'http://tv\.cntv\.cn/video/(\w+)/(\w+)', url): + id = match1(url, r'http://tv\.cntv\.cn/video/\w+/(\w+)') + elif re.match(r'http://\w+\.cntv\.cn/(\w+/\w+/(classpage/video/)?)?\d+/\d+\.shtml', url) or re.match(r'http://\w+.cntv.cn/(\w+/)*VIDE\d+.shtml', url): 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)