Fix flake8 E721

This commit is contained in:
Odd Stråbø 2024-06-10 15:40:09 +00:00
commit 415fa8ce97
5 changed files with 12 additions and 8 deletions

View file

@ -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)