From ae7245d385e4b98a833a44b8010a132c56a445c9 Mon Sep 17 00:00:00 2001 From: burekas7 Date: Sun, 10 Oct 2021 18:31:22 +0300 Subject: [PATCH] Update helper.py - xbmc.translatePath is deprecated xbmc.translatePath is deprecated and might be removed in future kodi versions. Changed to xbmcvfs.translatePath instead. --- resources/lib/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/helper.py b/resources/lib/helper.py index 99e8ee1..8a1b7d7 100644 --- a/resources/lib/helper.py +++ b/resources/lib/helper.py @@ -24,7 +24,7 @@ ADDON = xbmcaddon.Addon() ADDON_ID = ADDON.getAddonInfo('id') -ADDON_DATA_PATH = os.path.join(xbmc.translatePath("special://profile/addon_data/%s" % ADDON_ID)) +ADDON_DATA_PATH = os.path.join(xbmcvfs.translatePath("special://profile/addon_data/%s" % ADDON_ID)) NOTICE = xbmc.LOGINFO WARNING = xbmc.LOGWARNING @@ -247,4 +247,4 @@ def busy_dialog(force=False): finally: execute('CancelAlarm(BusyAlarmDelay,silent)') - execute('Dialog.Close(busydialognocancel)') \ No newline at end of file + execute('Dialog.Close(busydialognocancel)')