movie.py: more bugfixes

This commit is contained in:
rolux 2012-08-22 17:20:58 +02:00
parent 1f5c060bbc
commit b728fdc9b7

View file

@ -300,8 +300,8 @@ def parse_path(path):
data['extension'] = re.sub('^mpeg$', 'mpg', extension.lower()) if extension else None data['extension'] = re.sub('^mpeg$', 'mpg', extension.lower()) if extension else None
# type # type
data['type'] = parse_type(data['extension']) data['type'] = parse_type(data['extension'])
if data['type'] == 'subtitle': # language
data['language'] = language or LANGUAGES[0] data['language'] = language or LANGUAGES[0] if data['type'] == 'subtitle' else None
# normalizedPath # normalizedPath
data['normalizedPath'] = format_path(data) data['normalizedPath'] = format_path(data)
return data return data