parse_path expects top level

This commit is contained in:
j 2012-09-11 15:32:17 +02:00
parent 3de99bb4b6
commit d87a7ce181
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class File(models.Model):
if self.path:
self.path = self.normalize_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.is_audio = self.type == 'audio'
self.is_video = self.type == 'video'