Consolidato clean DB (rimpiazza metodo clean di Kodi) + revisione move_to_library per download

This commit is contained in:
axlt2002
2020-04-14 02:21:30 +02:00
parent ef7198b9c8
commit a2aa100178
7 changed files with 196 additions and 125 deletions

View File

@@ -247,6 +247,12 @@ def open_settings():
elif settings_pre.get("videolibrary_kodi", None) and not settings_post.get("videolibrary_kodi", None):
xbmc_videolibrary.clean(get_setting('videolibrarypath'))
if not settings_pre.get("library_move", None) and settings_post.get("library_move", None):
if settings_post.get("library_move", None) and not get_setting("videolibrary_kodi"):
from platformcode import platformtools
platformtools.dialog_ok(get_localized_string(20000), get_localized_string(80040))
set_setting("library_move", False)
def get_setting(name, channel="", server="", default=None):
"""