Languages fix, and more efficent thumb function

This commit is contained in:
Alhaziel
2019-03-27 18:10:05 +01:00
committed by mac12m99
parent f8a4d2d62b
commit 43517d4eed
16 changed files with 151 additions and 72 deletions

View File

@@ -301,7 +301,7 @@ def get_localized_string(code):
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),
'vos': get_localized_string(30136), 'vosi': get_localized_string(70566), 'adult': get_localized_string(30126),
'direct': get_localized_string(30137), 'torrent': get_localized_string(70015)}
return categories[categ] if categ in categories else categ