mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-22 07:52:46 +00:00
Fixes for Kodi 18.5 (and Python2)
This commit is contained in:
parent
a51bf9c2cc
commit
933a31ac23
6 changed files with 13 additions and 9 deletions
|
@ -263,7 +263,7 @@ def values(item, keys):
|
|||
''' Grab the values in the item for a list of keys {key},{key1}....
|
||||
If the key has no brackets, the key will be passed as is.
|
||||
'''
|
||||
return (item[key.replace('{', "").replace('}', "")] if type(key) == str and key.startswith('{') else key for key in keys)
|
||||
return (item[key.replace('{', "").replace('}', "")] if isinstance(key, text_type) and key.startswith('{') else key for key in keys)
|
||||
|
||||
|
||||
def indent(elem, level=0):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue