fix for empty result crash

This commit is contained in:
Marcel van der Veldt 2015-03-29 22:18:05 +02:00
parent 9fffc9cfcb
commit c680a7d0fe

View file

@ -530,7 +530,10 @@ class LibrarySync():
for tvshow in allTVShows: for tvshow in allTVShows:
episodeData = ReadEmbyDB().getEpisodes(tvshow,True) episodeData = ReadEmbyDB().getEpisodes(tvshow,True)
kodishow = allKodiTVShows.get(tvshow,None) kodishow = allKodiTVShows.get(tvshow,None)
if kodishow != None:
kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True) kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True)
else:
kodiEpisodes = None
if(self.ShouldStop(pDialog)): if(self.ShouldStop(pDialog)):
return False return False