From caaff108849f33a21dca1544b920103d951c6202 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 4 Nov 2012 17:47:25 +0100 Subject: [PATCH] check lower case extension --- pandora/archive/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 2660af53..b153ad06 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -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