mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
add support for other url patterns of ku6
This commit is contained in:
parent
38650d8c39
commit
9028df6e39
@ -27,7 +27,10 @@ def ku6_download_by_id(id, title = None, output_dir = '.', merge = True, info_on
|
||||
download_urls(urls, title, ext, size, output_dir, merge = merge)
|
||||
|
||||
def ku6_download(url, output_dir = '.', merge = True, info_only = False):
|
||||
id = r1(r'http://v.ku6.com/[a-z]+/show_\d+/(.*)\.\.\.html', url)
|
||||
patterns = [r'http://v.ku6.com/special/show_\d+/(.*)\.\.\.html',
|
||||
r'http://v.ku6.com/show/(.*)\.\.\.html',
|
||||
r'http://my.ku6.com/watch\?.*v=(.*)\.\..*']
|
||||
id = r1_of(patterns, url)
|
||||
|
||||
ku6_download_by_id(id, output_dir = output_dir, merge = merge, info_only = info_only)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user