config: add get_localized_category mediaserver

This commit is contained in:
Intel1
2018-08-08 08:54:27 -05:00
committed by GitHub
parent 1a9f946edf
commit f5c39d3817

View File

@@ -271,6 +271,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_path():
value = get_setting("videolibrarypath")
if value == "":