check lower case extension

This commit is contained in:
j 2012-11-04 17:47:25 +01:00
parent 6f178cca35
commit caaff10884

View file

@ -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