From d340e753e51e0df2bf3cefd9139321f177466681 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 6 Oct 2012 16:37:13 +0200 Subject: [PATCH] dont normalize path for pad.ma like systems for now --- pandora/archive/models.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 188aa43d..500aa9c5 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -161,7 +161,14 @@ class File(models.Model): return data def normalize_path(self): - return ox.movie.format_path(self.get_path_info()) + #FIXME: always use path_info + if settings.USE_IMDB: + return ox.movie.format_path(self.get_path_info()) + else: + path = self.path or '' + if self.instances.all().count(): + path = self.instances.all()[0].path + return path def save(self, *args, **kwargs): if self.id and not self.path_info and self.instances.count():