parse_path expects top level

This commit is contained in:
j 2012-09-11 15:32:17 +02:00
parent 3de99bb4b6
commit d87a7ce181

View file

@ -167,7 +167,7 @@ class File(models.Model):
if self.path: if self.path:
self.path = self.normalize_path() self.path = self.normalize_path()
self.sort_path = utils.sort_string(self.path) self.sort_path = utils.sort_string(self.path)
data = ox.movie.parse_path(self.path) data = ox.movie.parse_path('_/%s' % self.path)
self.type = data['type'] or 'unknown' self.type = data['type'] or 'unknown'
self.is_audio = self.type == 'audio' self.is_audio = self.type == 'audio'
self.is_video = self.type == 'video' self.is_video = self.type == 'video'