Skip to content

Commit

Permalink
~ improve progress bar during importing
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Jun 9, 2020
1 parent 01718a3 commit 9532849
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,9 +1003,8 @@ def execImport(handle: int, options: dict):
# Update sectionProgressTotal now that search has run and totalSize has been updated
sectionProgressTotal = section.totalSize

plexItemsProgressTotal = len(plexItems)
for plexItemsProgress, plexItem in enumerate(plexItems):
if xbmcmediaimport.shouldCancel(handle, plexItemsProgress, plexItemsProgressTotal):
for plexItem in plexItems:
if xbmcmediaimport.shouldCancel(handle, sectionProgress, sectionProgressTotal):
return

sectionProgress += 1
Expand Down

0 comments on commit 9532849

Please sign in to comment.