From bf995d6edc6a12d575e8d75a0da3d679f9957f90 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 5 Dec 2010 18:51:40 +0100 Subject: [PATCH] fix typos --- pandora/item/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 6bfdaaa09..24bac6cdc 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -593,9 +593,9 @@ class Item(models.Model): Facet.objects.filter(item=self, key='year').delete() def path(self, name=''): + h = self.itemId return os.path.join('items', h[:2], h[2:4], h[4:6], h[6:]) - ''' Video related functions ''' @@ -877,7 +877,7 @@ class Stream(models.Model): # return self.video def path(self): - return self.item.(self.profile) + return self.item.path(self.profile) def extract_derivatives(self): if settings.VIDEO_H264: