forked from 0x2620/pandora
wait for poster
This commit is contained in:
parent
6eb50153eb
commit
dadf1af1e6
1 changed files with 4 additions and 1 deletions
|
@ -256,7 +256,10 @@ class Item(models.Model):
|
||||||
self.data[key] = [cleanup(i) for i in data[key]]
|
self.data[key] = [cleanup(i) for i in data[key]]
|
||||||
else:
|
else:
|
||||||
self.data[key] = ox.escape_html(data[key])
|
self.data[key] = ox.escape_html(data[key])
|
||||||
return self.save()
|
p = self.save()
|
||||||
|
if not settings.USE_IMDB and filter(lambda k: k in ('title', 'director', 'year'), data):
|
||||||
|
p = tasks.update_poster.delay(self.itemId)
|
||||||
|
return p
|
||||||
|
|
||||||
def log(self):
|
def log(self):
|
||||||
c = Changelog(type='item')
|
c = Changelog(type='item')
|
||||||
|
|
Loading…
Reference in a new issue