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.make_torrent()
self.rendered = streams.count() > 0 self.rendered = streams.count() > 0
self.save() self.save()
if async: if self.rendered:
get_sequences.delay(self.itemId) if async:
else: get_sequences.delay(self.itemId)
get_sequences(self.itemId) else:
get_sequences(self.itemId)
def save_poster(self, data): def save_poster(self, data):
self.poster.name = self.path('poster.jpg') self.poster.name = self.path('poster.jpg')