only call get_posters if needed

This commit is contained in:
j 2013-07-22 19:51:43 +00:00
parent ebe71e2e87
commit 272265d95f

View file

@ -564,7 +564,7 @@ class Item(models.Model):
i['resolution'] = (streams[0].file.width, streams[0].file.height) i['resolution'] = (streams[0].file.width, streams[0].file.height)
#only needed by admins #only needed by admins
if 'posters' in i or (keys and 'posters' in keys): if keys and 'posters' in keys:
i['posters'] = self.get_posters() i['posters'] = self.get_posters()
frames = self.get_frames() frames = self.get_frames()