mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 05:55:02 +03:00
[ku6]fix error when parse url's extension
This commit is contained in:
parent
9db82b1131
commit
65712f8619
@ -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 = match1(urls[0], r'.*\.(\w+)\??[^\.]*')
|
||||
assert ext in ('flv', 'mp4', 'f4v'), ext
|
||||
ext = {'f4v': 'flv'}.get(ext, ext)
|
||||
size = 0
|
||||
|
Loading…
Reference in New Issue
Block a user