limit filename
This commit is contained in:
parent
dadc1d5148
commit
e0ffe5fa11
1 changed files with 2 additions and 2 deletions
|
@ -519,8 +519,8 @@ class Item(models.Model):
|
||||||
if 'bitrate' in videos[0].info:
|
if 'bitrate' in videos[0].info:
|
||||||
s.bitrate = videos[0].info['bitrate']
|
s.bitrate = videos[0].info['bitrate']
|
||||||
s.pixels = sum([v.pixels for v in videos])
|
s.pixels = sum([v.pixels for v in videos])
|
||||||
s.filename = ' '.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])
|
s.filename_desc = ' '.join([v.name for v in videos])[:955]
|
||||||
s.files = self.files.all().count()
|
s.files = self.files.all().count()
|
||||||
s.size = sum([v.size for v in videos]) #FIXME: only size of movies?
|
s.size = sum([v.size for v in videos]) #FIXME: only size of movies?
|
||||||
s.volume = 0
|
s.volume = 0
|
||||||
|
|
Loading…
Reference in a new issue