Fix dialog

This commit is contained in:
angelblue05 2015-12-27 17:06:50 -06:00
parent e475d3366d
commit 601f578892

View file

@ -934,17 +934,14 @@ class LibrarySync(threading.Thread):
# Process individual episode # Process individual episode
if self.shouldStop(): if self.shouldStop():
return False return False
if pdialog:
percentage = int((float(count) / float(total))*100)
pdialog.update(percentage, message=title)
count += 1
title = episode['SeriesName'] title = episode['SeriesName']
episodetitle = episode['Name'] episodetitle = episode['Name']
if pdialog: if pdialog:
percentage = int((float(count) / float(total))*100)
pdialog.update(percentage, message="%s - %s" % (title, episodetitle)) pdialog.update(percentage, message="%s - %s" % (title, episodetitle))
count += 1
tvshows.add_updateEpisode(episode) tvshows.add_updateEpisode(episode)
else: else:
self.logMsg("TVShows finished.", 2) self.logMsg("TVShows finished.", 2)