Skip to content

Commit

Permalink
Update of the media library now only occurs once.
Browse files Browse the repository at this point in the history
Previously the update function was called at the end of every action
performed. This sometimes could abort a update in progress.
  • Loading branch information
alex-caelus committed Nov 17, 2013
1 parent 6a5087a commit 7dc6c3a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions default.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import xbmc, xbmcgui, xbmcaddon
import sys
import os
import shutil

Expand Down Expand Up @@ -57,8 +56,6 @@ def moveorcopy(item, destination):
raise e
p.close()

UpdateMediaLibrary()

def CreateDirectory(currentdir):
docontinue = True
name = ""
Expand Down Expand Up @@ -154,6 +151,7 @@ def HandleAllRemaining():
for item in items:
HandleItem(item)

UpdateMediaLibrary()

#start
HandleAllRemaining()
Expand Down

0 comments on commit 7dc6c3a

Please sign in to comment.