Miglioria ricerca globale

This commit is contained in:
mac12m99
2021-10-30 11:39:06 +02:00
parent 0aebc644fa
commit 4610ba71af
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -490,7 +490,7 @@ def title_unify(title):
if cat != 'Mn': if cat != 'Mn':
if cat == 'Pd': if cat == 'Pd':
c_new = '-' c_new = '-'
elif cat in ['Ll', 'Lu'] or c == ':': elif cat in ['Ll', 'Lu', 'Nd'] or c == ':':
c_new = c c_new = c
else: else:
c_new = ' ' c_new = ' '
+3 -1
View File
@@ -395,8 +395,10 @@ class SearchWindow(xbmcgui.WindowXML):
if self.exit: return if self.exit: return
# some channels may use original title # some channels may use original title
if self.item.mode != 'all' and not valid and self.item.infoLabels.get('originaltitle'): if self.item.mode != 'all' and not valid and self.item.infoLabels.get('originaltitle'):
original = scrapertools.title_unify(self.item.infoLabels.get('originaltitle'))
if self.item.text != original:
logger.debug('retring with original title on channel ' + channel) logger.debug('retring with original title on channel ' + channel)
dummy, valid, dummy = search(self.item.infoLabels.get('originaltitle')) dummy, valid, dummy = search(original)
except: except:
import traceback import traceback
logger.error(traceback.format_exc()) logger.error(traceback.format_exc())