only extract sequences if rendered

This commit is contained in:
j 2013-09-26 14:06:27 +00:00
parent 5529ee0498
commit 2c01974625

View file

@ -1144,10 +1144,11 @@ class Item(models.Model):
self.make_torrent()
self.rendered = streams.count() > 0
self.save()
if async:
get_sequences.delay(self.itemId)
else:
get_sequences(self.itemId)
if self.rendered:
if async:
get_sequences.delay(self.itemId)
else:
get_sequences(self.itemId)
def save_poster(self, data):
self.poster.name = self.path('poster.jpg')