mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +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/webm': 'webm',
|
||||||
'video/x-flv': 'flv'
|
'video/x-flv': 'flv'
|
||||||
}
|
}
|
||||||
assert type in mapping, type
|
#assert type in mapping, type
|
||||||
|
if type in mapping:
|
||||||
ext = mapping[type]
|
ext = mapping[type]
|
||||||
|
else:
|
||||||
|
ext = None
|
||||||
|
|
||||||
size = int(headers['content-length'])
|
size = int(headers['content-length'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user