movie.py: more bugfixes
This commit is contained in:
parent
1f5c060bbc
commit
b728fdc9b7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue