KoD 1.5.2

- Migliorato Menu Rapido\n- Rimosso Menu Laterale\n- Fix Youtube\n- Fix Visualizza collegamenti della videoteca come pop-up\n- Riorganizzata sezione Aiuto\n- Reinserito canale tantifilm\n
This commit is contained in:
marco
2021-01-09 20:34:42 +01:00
parent d169179e15
commit 47f02db14b
38 changed files with 572 additions and 1128 deletions
+15 -1
View File
@@ -815,36 +815,50 @@ def typo(string, typography=''):
string = string
typography.lower()
if 'capitalize' in typography:
string = string.capitalize()
typography = typography.replace('capitalize', '')
if 'uppercase' in typography:
string = string.upper()
typography = typography.replace('uppercase', '')
if 'lowercase' in typography:
string = string.lower()
typography = typography.replace('lowercase', '')
if '[]' in typography:
string = '[' + string + ']'
typography = typography.replace('[]', '')
if '()' in typography:
string = '(' + string + ')'
typography = typography.replace('()', '')
if 'submenu' in typography:
if VLT: string = "•• " + string
else: string = string
typography = typography.replace('submenu', '')
if 'color kod' in typography:
string = '[COLOR ' + kod_color + ']' + string + '[/COLOR]'
typography = typography.replace('color kod', '')
elif 'color' in typography:
color = scrapertools.find_single_match(typography, 'color ([a-zA-Z0-9]+)')
string = '[COLOR ' + color + ']' + string + '[/COLOR]'
typography = typography.replace('color ' + color, '')
if 'bold' in typography:
string = '[B]' + string + '[/B]'
typography = typography.replace('bold', '')
if 'italic' in typography:
string = '[I]' + string + '[/I]'
typography = typography.replace('italic', '')
if '_' in typography:
string = ' ' + string
typography = typography.replace('_', '')
if '--' in typography:
string = ' - ' + string
typography = typography.replace('--', '')
if 'bullet' in typography:
if VLT: string = '[B]' + "" + '[/B] ' + string
else: string = string
typography = typography.replace('bullet', '')
typography = typography.strip()
if typography: string = string + '{' + typography + '}'
return string