better way to solve the nullpointer issue
This commit is contained in:
parent
e660c36dd3
commit
a513c01707
1 changed files with 10 additions and 11 deletions
|
@ -422,17 +422,16 @@ class LibrarySync():
|
||||||
episodeData = ReadEmbyDB().getEpisodes(tvshow,True)
|
episodeData = ReadEmbyDB().getEpisodes(tvshow,True)
|
||||||
kodiEpisodes = ReadKodiDB().getKodiEpisodes(tvshow,True,True)
|
kodiEpisodes = ReadKodiDB().getKodiEpisodes(tvshow,True,True)
|
||||||
|
|
||||||
if episodeData == None:
|
if episodeData != None:
|
||||||
return
|
|
||||||
|
if(self.ShouldStop(pDialog)):
|
||||||
if(self.ShouldStop(pDialog)):
|
return True
|
||||||
return True
|
|
||||||
|
if(pDialog != None):
|
||||||
if(pDialog != None):
|
progressTitle = "Sync DB : Processing Tv Show " + str(showCurrent) + " of " + str(showTotal)
|
||||||
progressTitle = "Sync DB : Processing Tv Show " + str(showCurrent) + " of " + str(showTotal)
|
pDialog.update(0, progressTitle)
|
||||||
pDialog.update(0, progressTitle)
|
total = len(episodeData) + 1
|
||||||
total = len(episodeData) + 1
|
count = 0
|
||||||
count = 0
|
|
||||||
|
|
||||||
#we have to compare the lists somehow
|
#we have to compare the lists somehow
|
||||||
for item in episodeData:
|
for item in episodeData:
|
||||||
|
|
Loading…
Reference in a new issue