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.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')
|
||||||
|
|
Loading…
Reference in a new issue