Fix Ricerca globale per kodi 18 + typo eror
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user