forked from 0x2620/pandora
check lower case extension
This commit is contained in:
parent
6f178cca35
commit
caaff10884
1 changed files with 1 additions and 0 deletions
|
@ -156,6 +156,7 @@ class File(models.Model):
|
|||
data['seriesYear'] = data['year']
|
||||
data['type'] = 'unknown'
|
||||
if 'extension' in data:
|
||||
data['extension'] = data['extension'].lower()
|
||||
for type in ox.movie.EXTENSIONS:
|
||||
if data['extension'] in ox.movie.EXTENSIONS[type]:
|
||||
data['type'] = type
|
||||
|
|
Loading…
Reference in a new issue