From 1ab2e416bb4790050bcf52b177e65a51dc48cecc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 6 Jan 2011 17:54:32 +0530 Subject: [PATCH] limit filename --- 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 79994b2a..741feda2 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -519,8 +519,8 @@ class Item(models.Model): if 'bitrate' in videos[0].info: s.bitrate = videos[0].info['bitrate'] s.pixels = sum([v.pixels for v in videos]) - s.filename = ' '.join([v.name for v in videos]) - s.filename_desc = ' '.join([v.name for v in videos]) + s.filename = ' '.join([v.name for v in videos])[:955] + s.filename_desc = ' '.join([v.name for v in videos])[:955] s.files = self.files.all().count() s.size = sum([v.size for v in videos]) #FIXME: only size of movies? s.volume = 0