if oxdbId changed, update local poster

This commit is contained in:
j 2011-10-24 21:46:05 +02:00
parent 562cad7d5a
commit bb33e8b277

View file

@ -267,6 +267,7 @@ class Item(models.Model):
q[0].merge_with(self, save=False) q[0].merge_with(self, save=False)
else: else:
self.oxdbId = oxdbId self.oxdbId = oxdbId
self.make_local_poster()
#id changed, what about existing item with new id? #id changed, what about existing item with new id?
if settings.USE_IMDB and len(self.itemId) != 7 and self.oxdbId != self.itemId: if settings.USE_IMDB and len(self.itemId) != 7 and self.oxdbId != self.itemId: