Skip to content

Commit

Permalink
Fixed #4931 : change in the nsi.json format
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxper authored and frodrigo committed Mar 2, 2021
1 parent cfdb129 commit 86d8872
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/TagFix_Brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86d8872

Please sign in to comment.