Fix missing pdialog

This commit is contained in:
angelblue05 2015-12-26 16:23:29 -06:00
parent e04b81eec3
commit 0b6b5861c7

View file

@ -929,12 +929,18 @@ class LibrarySync(threading.Thread):
total = len(updatelist) total = len(updatelist)
del updatelist[:] del updatelist[:]
count = 0
for episode in embyepisodes: for episode in embyepisodes:
# 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: