FIX:the return named type of url_info() is None, print_info is error because of NoneType does not have lower()

This commit is contained in:
codepongo 2013-04-26 09:40:09 +08:00
parent 30e179cc3f
commit d7265e901e

View File

@ -537,7 +537,7 @@ def playlist_not_supported(name):
return f
def print_info(site_info, title, type, size):
type = type.lower()
type = str(type).lower()
if type in ['3gp']:
type = 'video/3gpp'
elif type in ['asf', 'wmv']: