only call get_posters if needed
This commit is contained in:
parent
ebe71e2e87
commit
272265d95f
1 changed files with 1 additions and 1 deletions
|
@ -564,7 +564,7 @@ class Item(models.Model):
|
|||
i['resolution'] = (streams[0].file.width, streams[0].file.height)
|
||||
|
||||
#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()
|
||||
|
||||
frames = self.get_frames()
|
||||
|
|
Loading…
Reference in a new issue