add oxdbId to json, fixes #1571
This commit is contained in:
parent
3ff53566e9
commit
3744589ac5
1 changed files with 2 additions and 0 deletions
|
@ -525,6 +525,8 @@ class Item(models.Model):
|
||||||
i['user'] = self.user.username
|
i['user'] = self.user.username
|
||||||
i.update(self.external_data)
|
i.update(self.external_data)
|
||||||
i.update(self.data)
|
i.update(self.data)
|
||||||
|
if settings.USE_IMDB:
|
||||||
|
i['oxdbId'] = self.oxdbId or self.oxdb_id() or self.itemId
|
||||||
for k in settings.CONFIG['itemKeys']:
|
for k in settings.CONFIG['itemKeys']:
|
||||||
key = k['id']
|
key = k['id']
|
||||||
if not keys or key in keys:
|
if not keys or key in keys:
|
||||||
|
|
Loading…
Reference in a new issue