mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
fix assert error of file extension
This commit is contained in:
parent
44ce2e8f31
commit
b138f9399a
@ -17,7 +17,7 @@ def w56_download_by_id(id, title = None, output_dir = '.', merge = True, info_on
|
||||
assert len(files) == 1
|
||||
size = int(files[0]['filesize'])
|
||||
url = files[0]['url']
|
||||
ext = r1(r'\.([^.]+)$', url)
|
||||
ext = r1(r'\.([^.]+)\?', url)
|
||||
assert ext in ('flv', 'mp4')
|
||||
|
||||
print_info(site_info, title, ext, size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user