mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
fix url_info(): allow unknown MIME type
This commit is contained in:
parent
ff7ef4c09a
commit
ac16f1b60f
@ -106,8 +106,11 @@ def url_info(url):
|
||||
'video/webm': 'webm',
|
||||
'video/x-flv': 'flv'
|
||||
}
|
||||
assert type in mapping, type
|
||||
#assert type in mapping, type
|
||||
if type in mapping:
|
||||
ext = mapping[type]
|
||||
else:
|
||||
ext = None
|
||||
|
||||
size = int(headers['content-length'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user