diff --git a/addons.xml b/addons.xml index 137b9afb..328d38fc 100644 --- a/addons.xml +++ b/addons.xml @@ -572,7 +572,7 @@ - + diff --git a/addons.xml.md5 b/addons.xml.md5 index 657c2b9b..ca8e485d 100644 --- a/addons.xml.md5 +++ b/addons.xml.md5 @@ -1 +1 @@ -5a357d9ccf31ecb0d1d49cccd610f09d \ No newline at end of file +4f13c9877fec888d322cfbac2d28555c \ No newline at end of file diff --git a/script.smartplaylist.generator/addon.xml b/script.smartplaylist.generator/addon.xml index c061a6a0..40d305f9 100644 --- a/script.smartplaylist.generator/addon.xml +++ b/script.smartplaylist.generator/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/script.smartplaylist.generator/resources/images/imdb.png b/script.smartplaylist.generator/resources/images/imdb.png new file mode 100644 index 00000000..0ae4b916 Binary files /dev/null and b/script.smartplaylist.generator/resources/images/imdb.png differ diff --git a/script.smartplaylist.generator/resources/lib/default.py b/script.smartplaylist.generator/resources/lib/default.py index 9c8210b0..db34115b 100644 --- a/script.smartplaylist.generator/resources/lib/default.py +++ b/script.smartplaylist.generator/resources/lib/default.py @@ -19,7 +19,6 @@ # -*- coding: utf-8 -*- from globals import * from parsers import trakt -from parsers import imdb class SPGenerator: def __init__(self, sysARG=sys.argv): @@ -64,7 +63,7 @@ def __match(kodi_item, type, list_items): matches.setdefault(type,[]).append(match) break if match is None and incl_missing: matches.setdefault(type,[]).append(list_item) - + for type, list_items in list(source_items.items()): self.log('match_items, Type: %s, INCL_MISSING: %s'%(type,incl_missing)) if self.dia: self.dia = self.kodi.progressBGDialog(self.pct, self.dia, 'Matching %s'%(type.title())) @@ -92,20 +91,20 @@ def __indent(elem, level=0): elem.tail = i # incl_missing = REAL_SETTINGS.getSetting('Incl_Missing') == 'true' - # for type, items in (list(match_items.items())): - # if incl_missing: - # match_field = 'title' - # match_key = 'title' - # else: - # match_field = {'0':'title','1':'filename'}[str(match_val)].lower() - # if type == 'tvshows' and match_field == 'filename': - # match_field = 'path' - # match_key = 'file' - # elif match_field == 'title': - # match_key = 'title' - # else: - # match_key = 'file' - + # if incl_missing: + # match_field = 'title' + # match_key = 'title' + # else: + # match_field = {'0':'title','1':'filename'}[str(match_val)].lower() + # if type == 'tvshows' and match_field == 'filename': + # match_field = 'path' + # match_key = 'file' + # elif match_field == 'title': + # match_key = 'title' + # else: + # match_key = 'file' + + for type, items in (list(match_items.items())): if type == 'movies': match_field = 'title' match_key = 'title' @@ -154,6 +153,7 @@ def run(self): if 'Select_' in param and not self.kodi.isRunning(param): with self.kodi.busy_dialog(), self.kodi.setRunning(param): self.build_lists(source,module.get_lists()) + REAL_SETTINGS.openSettings() elif 'Build_' in param and not self.kodi.isRunning(param): with self.kodi.setRunning(param): diff --git a/zips/script.smartplaylist.generator/script.smartplaylist.generator-0.0.5.zip b/zips/script.smartplaylist.generator/script.smartplaylist.generator-0.0.5.zip new file mode 100644 index 00000000..ee7b84e3 Binary files /dev/null and b/zips/script.smartplaylist.generator/script.smartplaylist.generator-0.0.5.zip differ diff --git a/zips/script.smartplaylist.generator/script.smartplaylist.generator-0.0.6.zip b/zips/script.smartplaylist.generator/script.smartplaylist.generator-0.0.6.zip new file mode 100644 index 00000000..9d83d518 Binary files /dev/null and b/zips/script.smartplaylist.generator/script.smartplaylist.generator-0.0.6.zip differ diff --git a/zips/script.smartplaylist.generator/script.smartplaylist.generator-0.0.7.zip b/zips/script.smartplaylist.generator/script.smartplaylist.generator-0.0.7.zip new file mode 100644 index 00000000..9fd6ca84 Binary files /dev/null and b/zips/script.smartplaylist.generator/script.smartplaylist.generator-0.0.7.zip differ