From 3fca65e86b12410a7dd3cf87cc228df2c7a8cb30 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 26 Jun 2012 10:48:43 +0200 Subject: [PATCH] dont save oxdbid if not using imdb, 2 items might have the same id --- pandora/item/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index a0eaf0722..4385388a4 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -316,8 +316,7 @@ class Item(models.Model): #this does not work if another item without imdbid has the same metadata oxdbId = self.oxdb_id() if not settings.USE_IMDB: - update_poster = self.oxdbId != oxdbId - self.oxdbId = oxdbId + self.oxdbId = None elif oxdbId: if self.oxdbId != oxdbId: q = Item.objects.filter(oxdbId=oxdbId).exclude(id=self.id)