From 451577a3f9583cda737e7768de07fc1c1338d987 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 10 Oct 2012 13:36:01 +0200 Subject: [PATCH] only update ids if needed --- pandora/item/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index c81369bb..60f56574 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -340,7 +340,8 @@ class Item(models.Model): q = Item.objects.filter(oxdbId=oxdbId).exclude(id=self.id) self.oxdbId = oxdbId update_poster = True - update_ids = True + if len(self.itemId) != 7: + update_ids = True #id changed, what about existing item with new id? if settings.USE_IMDB and len(self.itemId) != 7 and self.oxdbId != self.itemId: