diff --git a/core/support.py b/core/support.py index 5331ee43..cbef9591 100755 --- a/core/support.py +++ b/core/support.py @@ -719,7 +719,12 @@ def typo(string, typography=''): kod_color = '0xFF65B3DA' #'0xFF0081C2' try: string = str(string) except: string = str(string.encode('utf8')) + + typography2 = match(string, patron=r'\{([^\}]+)\}').match # Check if the typographic attributes are in the string or outside + if typography2: + string = re.sub(r'(\s*\{[^\}]+\})', '', string) + typography += ' ' + typography2 if typography: string = string + ' ' + typography if config.get_localized_string(30992) in string: @@ -746,8 +751,8 @@ def typo(string, typography=''): string = '[' + re.sub(r'\s\[\]','',string) + ']' if '()' in string: string = '(' + re.sub(r'\s\(\)','',string) + ')' - if '{}' in string: - string = '{' + re.sub(r'\s\{\}','',string) + '}' + # if '{}' in string: + # string = '{' + re.sub(r'\s\{\}','',string) + '}' if 'submenu' in string: string = "•• " + re.sub(r'\ssubmenu','',string) if 'color' in string: diff --git a/specials/community.py b/specials/community.py index b62dc156..6d358b65 100644 --- a/specials/community.py +++ b/specials/community.py @@ -203,6 +203,7 @@ def peliculas(item, json='', key='', itemlist=[]): if not 'generic_list' in key: tmdb.set_infoLabels(itlist, seekTmdb=True) itemlist += itlist + itemlist = pagination(item, itemlist) return itemlist