Skip to content

Commit

Permalink
Smartplaylist Generator v.0.0.7
Browse files Browse the repository at this point in the history
v.0.0.6
  • Loading branch information
Lunatixz committed Dec 20, 2024
1 parent 80a0130 commit 766182e
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 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.4" name="Smartplaylist Generator" provider-name="Lunatixz">
<addon id="script.smartplaylist.generator" version="0.0.7" 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 @@
5a357d9ccf31ecb0d1d49cccd610f09d
4f13c9877fec888d322cfbac2d28555c
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.4" name="Smartplaylist Generator" provider-name="Lunatixz">
<addon id="script.smartplaylist.generator" version="0.0.7" 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 16 additions & 16 deletions script.smartplaylist.generator/resources/lib/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()))
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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):
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 766182e

Please sign in to comment.