Fix Community Channels

This commit is contained in:
Alhaziel
2020-03-11 12:32:43 +01:00
parent c4912c946b
commit 640814a503
2 changed files with 8 additions and 2 deletions

View File

@@ -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:

View File

@@ -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