diff --git a/you_get/common.py b/you_get/common.py index 85aca54f..bc1a60fc 100644 --- a/you_get/common.py +++ b/you_get/common.py @@ -106,8 +106,11 @@ def url_info(url): 'video/webm': 'webm', 'video/x-flv': 'flv' } - assert type in mapping, type - ext = mapping[type] + #assert type in mapping, type + if type in mapping: + ext = mapping[type] + else: + ext = None size = int(headers['content-length'])