Merge pull request #903 from croneter/fix-uniqueid

Fix Trakt add-on not recognizing id of tv shows
This commit is contained in:
croneter 2019-06-22 18:44:48 +02:00 committed by GitHub
commit 6ee1a4b695
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@ class Show(TvShowMixin, ItemBase):
self.kodidb.update_uniqueid(kodi_id, self.kodidb.update_uniqueid(kodi_id,
v.KODI_TYPE_SHOW, v.KODI_TYPE_SHOW,
api.provider('tvdb'), api.provider('tvdb'),
"unknown", 'tvdb',
uniqueid) uniqueid)
else: else:
self.kodidb.remove_uniqueid(kodi_id, v.KODI_TYPE_SHOW) self.kodidb.remove_uniqueid(kodi_id, v.KODI_TYPE_SHOW)
@ -242,7 +242,7 @@ class Show(TvShowMixin, ItemBase):
kodi_id, kodi_id,
v.KODI_TYPE_SHOW, v.KODI_TYPE_SHOW,
api.provider('tvdb'), api.provider('tvdb'),
"unknown") 'tvdb')
else: else:
uniqueid = -1 uniqueid = -1
self.kodidb.add_people(kodi_id, self.kodidb.add_people(kodi_id,