add oxdbId to json, fixes #1571

This commit is contained in:
j 2013-07-10 14:08:39 +00:00
parent 3ff53566e9
commit 3744589ac5

View file

@ -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: