Fix Downloader Attende prima di pulire la libreria

This commit is contained in:
Alhaziel
2019-08-05 20:31:56 +02:00
parent 95e7685d4b
commit 59574159b0

View File

@@ -307,15 +307,14 @@ def move_to_libray(item):
filename = File.lower()
name = name.lower()
if File.startswith(name) and (File.endswith('.strm') or File.endswith('.json') or File.endswith('.nfo')):
clean = True
logger.info('Elimino il File: ' + str(os.path.join(config.get_videolibrary_path(), FOLDER, path_title, File)))
os.remove(os.path.join(config.get_videolibrary_path(), FOLDER, path_title, File))
from platformcode import xbmc_videolibrary
import xbmc
xbmc_videolibrary.update(FOLDER)
if clean == True:
import xbmc
xbmc.sleep(3000)
xbmc_videolibrary.clean()
while xbmc.getCondVisibility('Library.IsScanningVideo()'):
xbmc.sleep(500)
xbmc_videolibrary.clean()