From dfc9bb380fbc29a0b4480d268a781aa68fbc39b5 Mon Sep 17 00:00:00 2001 From: kevinSatizabal Date: Sun, 14 Jul 2024 14:08:27 -0500 Subject: [PATCH] Update xbmc.translatePath to xbmcvfs.translatePath. --- addon.xml | 3 ++- lib/cache.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index 55724ad..83cce8f 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + Simple HTTP Cache using sqlite3 @@ -11,6 +11,7 @@ Can be used as a generic key/blob data store when used without directives all fraser.chapman@gmail.com https://github.com/FraserChapman/script.module.cache + v1.0.5 (14-7-24) - "Update xbmc.translatePath to xbmcvfs.translatePath. v1.0.3 (18-7-19) - Fixes python version error diff --git a/lib/cache.py b/lib/cache.py index f21992a..2b34dcd 100644 --- a/lib/cache.py +++ b/lib/cache.py @@ -10,7 +10,6 @@ from datetime import datetime, timedelta, tzinfo from os import path -import xbmc import xbmcaddon import xbmcvfs @@ -24,7 +23,7 @@ HTTP_DATE_FORMAT = "%a, %d %b %Y %H:%M:%S %Z" ADDON = xbmcaddon.Addon() ADDON_PROFILE = ADDON.getAddonInfo("profile").encode("utf-8").decode("utf-8") -CACHE_URI = xbmc.translatePath(path.join(ADDON_PROFILE, "cache.sqlite")) +CACHE_URI = xbmcvfs.translatePath(path.join(ADDON_PROFILE, "cache.sqlite")) def httpdate_to_datetime(input_date):