config: add get_localized_category mediaserver
This commit is contained in:
@@ -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 == "":
|
||||
|
||||
Reference in New Issue
Block a user