From d87a7ce1810353411c97c7f6c00684b77caf5696 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 11 Sep 2012 15:32:17 +0200 Subject: [PATCH] parse_path expects top level --- pandora/archive/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 05030d83..ab611eaa 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -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'