From 601f578892f93e6de8ecd955a38a22cec8ca9a2d Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 27 Dec 2015 17:06:50 -0600 Subject: [PATCH] Fix dialog --- resources/lib/librarysync.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 7020af13..b72e377f 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -934,17 +934,14 @@ class LibrarySync(threading.Thread): # Process individual episode if self.shouldStop(): - return False - - if pdialog: - percentage = int((float(count) / float(total))*100) - pdialog.update(percentage, message=title) - count += 1 + return False title = episode['SeriesName'] episodetitle = episode['Name'] if pdialog: + percentage = int((float(count) / float(total))*100) pdialog.update(percentage, message="%s - %s" % (title, episodetitle)) + count += 1 tvshows.add_updateEpisode(episode) else: self.logMsg("TVShows finished.", 2)