From 03d1b00d0ecc46fe6e8d51ab392bc5d367eb3c48 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Fri, 24 May 2019 11:27:17 +0200 Subject: [PATCH] exeption on raname and fix for help section --- default.py | 4 ++-- {platformcode => specials}/help.json | 0 {platformcode => specials}/help.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {platformcode => specials}/help.json (100%) rename {platformcode => specials}/help.py (100%) diff --git a/default.py b/default.py index bd7fd3e0..26a058fd 100644 --- a/default.py +++ b/default.py @@ -11,9 +11,9 @@ import xbmc from platformcode import config, logger logger.info("init...") -if os.path.isfile(os.path.join(config.get_data_path(), 'alfavorites-default.json')): +if os.path.isfile(os.path.join(config.get_data_path(), 'alfavorites-default.json')) == True and os.path.isfile(os.path.join(config.get_data_path(), 'kodfavorites-default.json')) == False: os.rename(os.path.join(config.get_data_path(), 'alfavorites-default.json'), os.path.join(config.get_data_path(), 'kodfavorites-default.json')) -if os.path.isfile(os.path.join(config.get_data_path(), 'alfa_db.sqlite')): +if os.path.isfile(os.path.join(config.get_data_path(), 'alfa_db.sqlite')) == True and os.path.isfile(os.path.join(config.get_data_path(), 'kod_db.sqlite')) == False: os.rename(os.path.join(config.get_data_path(), 'alfa_db.sqlite'), os.path.join(config.get_data_path(), 'kod_db.sqlite')) librerias = xbmc.translatePath(os.path.join(config.get_runtime_path(), 'lib')) diff --git a/platformcode/help.json b/specials/help.json similarity index 100% rename from platformcode/help.json rename to specials/help.json diff --git a/platformcode/help.py b/specials/help.py similarity index 100% rename from platformcode/help.py rename to specials/help.py