forked from 0x2620/pandora
only extract sequences if rendered
This commit is contained in:
parent
5529ee0498
commit
2c01974625
1 changed files with 5 additions and 4 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue