forked from 0x2620/pandora
dont save oxdbid if not using imdb, 2 items might have the same id
This commit is contained in:
parent
5d87258eb8
commit
3fca65e86b
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue