Skip to content

Commit

Permalink
add support for other url patterns of ku6
Browse files Browse the repository at this point in the history
  • Loading branch information
radaiming committed Dec 12, 2012
1 parent 38650d8 commit 9028df6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions you_get/downloader/ku6.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ 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)

site_info = "Ku6.com"
Expand Down

0 comments on commit 9028df6

Please sign in to comment.