From 0ea397cac5caf5e21db9618ff47854c6c4d5273e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 24 Feb 2012 22:55:56 +0530 Subject: [PATCH] support .mts --- pandora/archive/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 1e4ee859..9b1ff1aa 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -126,9 +126,9 @@ class File(models.Model): self.pixels = int(self.width * self.height * float(utils.parse_decimal(self.framerate)) * self.duration) else: - self.is_video = os.path.splitext(self.path)[-1] in ('.avi', '.mkv', '.dv', '.ogv', '.mpeg', '.mov', '.webm', '.mp4', '.mpg', '.wmv') - self.is_audio = os.path.splitext(self.path)[-1] in ('.mp3', '.wav', '.ogg', '.flac', '.oga', '.wma') - self.is_subtitle = os.path.splitext(self.path)[-1] in ('.srt', ) + self.is_video = os.path.splitext(self.path)[-1].lower() in ('.avi', '.mkv', '.dv', '.ogv', '.mpeg', '.mov', '.webm', '.mp4', '.mpg', '.wmv', '.mts') + self.is_audio = os.path.splitext(self.path)[-1].lower() in ('.mp3', '.wav', '.ogg', '.flac', '.oga', '.wma') + self.is_subtitle = os.path.splitext(self.path)[-1].lower() in ('.srt', ) if self.path.endswith('.srt'): self.is_subtitle = True