From 07ba8ccfdda21ac2d7ef14c190f74e2d7968914a Mon Sep 17 00:00:00 2001 From: tobalan <127816009+tobalan@users.noreply.github.com> Date: Sat, 8 Jul 2023 17:18:03 +0530 Subject: [PATCH] DS-003 fix type error --- resources/lib/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/main.py b/resources/lib/main.py index 3367588..bf374e9 100644 --- a/resources/lib/main.py +++ b/resources/lib/main.py @@ -179,7 +179,7 @@ def fltr(x): return LANG_MAP[str(x.get("channelLanguageId"))] == categoryOrLang for each in filter(fltr, resp): - if each.get("channelIdForRedirect") or not Settings.get_boolean(each.get("channelLanguageId")): + if each.get("channelIdForRedirect") or not Settings.get_boolean(LANG_MAP[str(each.get("channelLanguageId"))]): continue litm = Listitem.from_dict(**{ "label": each.get("channel_name"),