mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-13 02:23:18 +00:00
Fix flake8 E721
This commit is contained in:
parent
6a99d8ef4b
commit
415fa8ce97
5 changed files with 12 additions and 8 deletions
|
|
@ -16,7 +16,7 @@ LOG = LazyLogger(__name__)
|
|||
|
||||
def translate(string):
|
||||
"""Get add-on string. Returns in unicode."""
|
||||
if type(string) != int:
|
||||
if not isinstance(string, int):
|
||||
string = STRINGS[string]
|
||||
|
||||
result = xbmcaddon.Addon("plugin.video.jellyfin").getLocalizedString(string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue