Fix Ricerca globale per kodi 18 + typo eror

This commit is contained in:
Alhaziel01
2021-02-25 11:21:57 +01:00
parent 2a68a4901d
commit 0d78d6ee95
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ def live(item):
logger.debug() logger.debug()
itemlist =[] itemlist =[]
for name, values in liveDict().items(): for name, values in liveDict().items():
itemlist.append(item.clone(title=typo(name), fulltitle=name, plot=values['plot'], url=values['url'], id=values['id'], action='play', forcethumb=True, no_return=True)) itemlist.append(item.clone(title=typo(name,'bold'), fulltitle=name, plot=values['plot'], url=values['url'], id=values['id'], action='play', forcethumb=True, no_return=True))
return support.thumb(itemlist, live=True) return support.thumb(itemlist, live=True)
+1 -1
View File
@@ -249,7 +249,7 @@ def live(item):
itlist = [executor.submit(load_live, ch.channel) for ch in channels] itlist = [executor.submit(load_live, ch.channel) for ch in channels]
for res in futures.as_completed(itlist): for res in futures.as_completed(itlist):
if res.result(): if res.result():
channel_name, itlist = res.rFesult() channel_name, itlist = res.result()
channels_dict[channel_name] = itlist channels_dict[channel_name] = itlist
for ch in channels: for ch in channels:
+1
View File
@@ -750,6 +750,7 @@ def title_unify(title):
import unicodedata import unicodedata
u_title = '' u_title = ''
if type(title) == str: title = u'' + title
for c in unicodedata.normalize('NFD', title): for c in unicodedata.normalize('NFD', title):
cat = unicodedata.category(c) cat = unicodedata.category(c)
if cat != 'Mn': if cat != 'Mn':