diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index 6e3ede7e..f7defa6d 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -530,7 +530,10 @@ class LibrarySync(): for tvshow in allTVShows: episodeData = ReadEmbyDB().getEpisodes(tvshow,True) kodishow = allKodiTVShows.get(tvshow,None) - kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True) + if kodishow != None: + kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True) + else: + kodiEpisodes = None if(self.ShouldStop(pDialog)): return False