mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
fix for empty result crash
This commit is contained in:
parent
9fffc9cfcb
commit
c680a7d0fe
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||||
kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True)
|
if kodishow != None:
|
||||||
|
kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True)
|
||||||
|
else:
|
||||||
|
kodiEpisodes = None
|
||||||
|
|
||||||
if(self.ShouldStop(pDialog)):
|
if(self.ShouldStop(pDialog)):
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue