Unificar traducción de categorías

This commit is contained in:
pipcat
2018-07-30 19:21:03 +02:00
parent c1022d8afe
commit 6882a2a11a
3 changed files with 65 additions and 6 deletions

View File

@@ -299,6 +299,14 @@ def get_localized_string(code):
return dev
def get_localized_category(categ):
categories = {'movie': get_localized_string(30122), 'tvshow': get_localized_string(30123),
'anime': get_localized_string(30124), 'documentary': get_localized_string(30125),
'vos': get_localized_string(30136), 'adult': get_localized_string(30126),
'direct': get_localized_string(30137), 'torrent': get_localized_string(70015)}
return categories[categ] if categ in categories else categ
def get_videolibrary_config_path():
value = get_setting("videolibrarypath")