From b982be9ada9252ae36c33adb20aa4456d1eae0d0 Mon Sep 17 00:00:00 2001 From: Lunatixz <128316+Lunatixz@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:08:40 -0500 Subject: [PATCH] v.0.0.3 --- addons.xml | 2 +- addons.xml.md5 | 2 +- script.smartplaylist.generator/addon.xml | 2 +- script.smartplaylist.generator/resources/lib/default.py | 7 +++++-- script.smartplaylist.generator/resources/lib/globals.py | 5 +++-- script.smartplaylist.generator/resources/settings.xml | 2 +- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/addons.xml b/addons.xml index 60a1f5e2..49a14ca6 100644 --- a/addons.xml +++ b/addons.xml @@ -572,7 +572,7 @@ - + diff --git a/addons.xml.md5 b/addons.xml.md5 index 1639cf71..48eb915b 100644 --- a/addons.xml.md5 +++ b/addons.xml.md5 @@ -1 +1 @@ -b186612af13b1749db5b786240e5e8da \ No newline at end of file +c7631510a42858f8edd15d1b9032a81b \ No newline at end of file diff --git a/script.smartplaylist.generator/addon.xml b/script.smartplaylist.generator/addon.xml index 5fcd6cc1..e6d55093 100644 --- a/script.smartplaylist.generator/addon.xml +++ b/script.smartplaylist.generator/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/script.smartplaylist.generator/resources/lib/default.py b/script.smartplaylist.generator/resources/lib/default.py index 09eec2b7..ce83a8fd 100644 --- a/script.smartplaylist.generator/resources/lib/default.py +++ b/script.smartplaylist.generator/resources/lib/default.py @@ -19,14 +19,17 @@ # -*- coding: utf-8 -*- from globals import * +try: from simplecache import SimpleCache +except: from simplecache.simplecache import SimpleCache #pycharm stub + class SPGenerator: def __init__(self, sysARG=sys.argv): self.log('__init__, sysARG = %s'%(sysARG)) - self.dia = None - self.pct = 0 self.cache = SimpleCache() self.cache.enable_mem_cache = False + self.dia = None + self.pct = 0 self.sysARG = sysARG self.kodi = Kodi(self.cache) self.lists = [LANGUAGE(32100),] diff --git a/script.smartplaylist.generator/resources/lib/globals.py b/script.smartplaylist.generator/resources/lib/globals.py index 534548b8..43d34e4a 100644 --- a/script.smartplaylist.generator/resources/lib/globals.py +++ b/script.smartplaylist.generator/resources/lib/globals.py @@ -27,8 +27,6 @@ from functools import wraps -try: from simplecache import SimpleCache -except: from simplecache.simplecache import SimpleCache #pycharm stub from contextlib import contextmanager, closing from infotagger.listitem import ListItemInfoTag from kodi_six import xbmc, xbmcaddon, xbmcplugin, xbmcgui, xbmcvfs @@ -36,6 +34,9 @@ from itertools import repeat, count from functools import partial, wraps, reduce, update_wrapper +try: from simplecache import SimpleCache +except: from simplecache.simplecache import SimpleCache #pycharm stub + #info ADDON_ID = 'script.smartplaylist.generator' REAL_SETTINGS = xbmcaddon.Addon(id=ADDON_ID) diff --git a/script.smartplaylist.generator/resources/settings.xml b/script.smartplaylist.generator/resources/settings.xml index 81f62745..5d73cd91 100644 --- a/script.smartplaylist.generator/resources/settings.xml +++ b/script.smartplaylist.generator/resources/settings.xml @@ -147,7 +147,7 @@ RunScript(special://home/addons/script.smartplaylist.generator/resources/lib/default.py, Select_Trakt) - false + true