Skip to content

Commit

Permalink
v.0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunatixz committed Dec 20, 2024
1 parent 3047bdf commit b982be9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@
</extension>
</addon>

<addon id="script.smartplaylist.generator" version="0.0.2" name="Smartplaylist Generator" provider-name="Lunatixz">
<addon id="script.smartplaylist.generator" version="0.0.3" name="Smartplaylist Generator" provider-name="Lunatixz">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.six" version="1.0.0"/>
Expand Down
2 changes: 1 addition & 1 deletion addons.xml.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b186612af13b1749db5b786240e5e8da
c7631510a42858f8edd15d1b9032a81b
2 changes: 1 addition & 1 deletion script.smartplaylist.generator/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="script.smartplaylist.generator" version="0.0.2" name="Smartplaylist Generator" provider-name="Lunatixz">
<addon id="script.smartplaylist.generator" version="0.0.3" name="Smartplaylist Generator" provider-name="Lunatixz">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.six" version="1.0.0"/>
Expand Down
7 changes: 5 additions & 2 deletions script.smartplaylist.generator/resources/lib/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),]
Expand Down
5 changes: 3 additions & 2 deletions script.smartplaylist.generator/resources/lib/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@


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
from concurrent.futures import ThreadPoolExecutor, TimeoutError
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)
Expand Down
2 changes: 1 addition & 1 deletion script.smartplaylist.generator/resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</dependencies>
<control type="button" format="action">
<data>RunScript(special://home/addons/script.smartplaylist.generator/resources/lib/default.py, Select_Trakt)</data>
<close>false</close>
<close>true</close>
</control>
</setting>
<setting id="Build_Trakt" type="string" label="32106" help="32110" parent="Enable_Trakt">
Expand Down

0 comments on commit b982be9

Please sign in to comment.