fix error when no tvshows added yet

This commit is contained in:
Marcel van der Veldt 2015-03-29 19:33:41 +02:00
parent 1b34ce743a
commit 39b3fd9523

View file

@ -438,8 +438,11 @@ class LibrarySync():
episodeData = ReadEmbyDB().getEpisodes(tvshow,True)
allKodiTVShows = ReadKodiDB().getKodiTvShows(False)
kodishow = allKodiTVShows.get(tvshow,None)
kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True)
if allKodiTVShows != None:
kodishow = allKodiTVShows.get(tvshow,None)
kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True)
else:
kodiEpisodes = None
if episodeData != None: