Find match on items with more than one URL
This commit is contained in:
parent
e31bd672ee
commit
5f41e4a7c6
|
@ -187,9 +187,9 @@ class OnePass:
|
||||||
host = extract_host(url)
|
host = extract_host(url)
|
||||||
|
|
||||||
def filter_host(item):
|
def filter_host(item):
|
||||||
"""Exclude items that does not match host """
|
"""Exclude items that does not match host on any configured URL"""
|
||||||
if "url" in item["overview"]:
|
if "URLs" in item["overview"]:
|
||||||
return host in item["overview"]["url"]
|
return any(filter(lambda x: host in x["u"], item["overview"]["URLs"]))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
items = cls.list_items()
|
items = cls.list_items()
|
||||||
|
|
Loading…
Reference in New Issue