From 2c01974625c9382c191112d410db8d57794da79d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 26 Sep 2013 14:06:27 +0000 Subject: [PATCH] only extract sequences if rendered --- pandora/item/models.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 10a46cf4..c6472357 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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')