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

View File

@@ -490,7 +490,7 @@ def title_unify(title):
if cat != 'Mn':
if cat == 'Pd':
c_new = '-'
elif cat in ['Ll', 'Lu'] or c == ':':
elif cat in ['Ll', 'Lu', 'Nd'] or c == ':':
c_new = c
else:
c_new = ' '

View File

@@ -395,8 +395,10 @@ class SearchWindow(xbmcgui.WindowXML):
if self.exit: return
# some channels may use original title
if self.item.mode != 'all' and not valid and self.item.infoLabels.get('originaltitle'):
logger.debug('retring with original title on channel ' + channel)
dummy, valid, dummy = search(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)
dummy, valid, dummy = search(original)
except:
import traceback
logger.error(traceback.format_exc())