Miglioria ricerca globale
This commit is contained in:
@@ -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 = ' '
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user