From 86d88724e20387fbe3d40a365de3a406a0909bb5 Mon Sep 17 00:00:00 2001 From: nuxper Date: Mon, 1 Mar 2021 23:56:28 +0100 Subject: [PATCH] Fixed #4931 : change in the nsi.json format --- plugins/TagFix_Brand.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/TagFix_Brand.py b/plugins/TagFix_Brand.py index a7416cdb2..73a01103d 100644 --- a/plugins/TagFix_Brand.py +++ b/plugins/TagFix_Brand.py @@ -64,10 +64,10 @@ def _download_nsi(self): def _parse_category_from_nsi(self, nsi, nsiprefix, key): additional_presets = {} - for tag, presets in nsi.items(): - if tag.startswith(nsiprefix): + for tag, details in nsi.items(): + if tag.startswith(nsiprefix) and "items" in details: nsi_name = tag[len(nsiprefix):] - for preset in presets: + for preset in details["items"]: if "locationSet" in preset: if ("include" in preset["locationSet"] and self.country_code not in preset["locationSet"]["include"] and