mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 12:42:29 +03:00
fix the error when parse ku6 url (such as
http://v.ku6.com/show/dBKZbnO51PWi7N2xRa3Bmw...html), case the sub-url end with mp4?AccessKeyId=...&Expires=...&Signature=...
This commit is contained in:
parent
b4705e44e5
commit
155e434607
@ -14,7 +14,7 @@ def ku6_download_by_id(id, title = None, output_dir = '.', merge = True, info_on
|
||||
title = title or t
|
||||
assert title
|
||||
urls = f.split(',')
|
||||
ext = re.sub(r'.*\.', '', urls[0])
|
||||
ext = re.match(r'.*\.(\w+)\??[^\.]*', urls[0]).group(1)
|
||||
assert ext in ('flv', 'mp4', 'f4v'), ext
|
||||
ext = {'f4v': 'flv'}.get(ext, ext)
|
||||
size = 0
|
||||
|
Loading…
Reference in New Issue
Block a user