Spostamento videoteca (fix widget)

This commit is contained in:
axlt2002
2020-04-01 00:10:10 +02:00
parent 38a726afb0
commit 6e405f3b08
3 changed files with 4 additions and 11 deletions

View File

@@ -936,6 +936,8 @@ def update_db(current_path, new_path, current_movies_folder, new_movies_folder,
p += 5
progress.update(p, config.get_localized_string(20000), config.get_localized_string(80013))
xbmc.executebuiltin('XBMC.ReloadSkin()')
def clear_db():
logger.info()
@@ -1001,7 +1003,7 @@ def clear_db():
nun_records, records = execute_sql_kodi(sql)
progress.update(80)
update_sources(path)
clear_cache()
xbmc.executebuiltin('XBMC.ReloadSkin()')
progress.update(100)
progress.close()
@@ -1226,13 +1228,6 @@ def update_sources(old, new=''):
xmldoc.appendChild(source_nodes)
def clear_cache():
path = xbmc.translatePath('special://home/cache/archive_cache/')
for file in filetools.listdir(path):
filetools.remove(filetools.join(path, file))
# xbmc.executebuiltin('XBMC.ReloadSkin()')
def ask_set_content(silent=False):
logger.info()
logger.debug("videolibrary_kodi %s" % config.get_setting("videolibrary_kodi"))