diff --git a/addon.xml b/addon.xml index 7d506117..09d25e00 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/objects/tvshows.py b/resources/lib/objects/tvshows.py index 6f3cb188..454e4140 100644 --- a/resources/lib/objects/tvshows.py +++ b/resources/lib/objects/tvshows.py @@ -284,6 +284,7 @@ class TVShows(Items): votecount = item.get('VoteCount') premieredate = API.get_premiere_date() tvdb = API.get_provider('Tvdb') + imdb = API.get_provider('Imdb') sorttitle = item['SortName'] mpaa = API.get_mpaa() genre = " / ".join(genres) @@ -345,7 +346,7 @@ class TVShows(Items): if self.kodi_version > 16: uniqueid = self.kodi_db.create_entry_uniqueid() - self.kodi_db.add_uniqueid(uniqueid, showid, "tvshow", tvdb, "tvdb") + self.kodi_db.add_uniqueid(uniqueid, showid, "tvshow", imdb, "imdb") ##### UPDATE THE TVSHOW ##### if update_item: