From 5f41e4a7c681c74fed5c587628ff3e364122e6a5 Mon Sep 17 00:00:00 2001 From: Felipe M Date: Tue, 9 Feb 2021 14:13:14 +0100 Subject: [PATCH] Find match on items with more than one URL --- qute_1pass.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qute_1pass.py b/qute_1pass.py index b3adf34..6b2dea6 100755 --- a/qute_1pass.py +++ b/qute_1pass.py @@ -187,9 +187,9 @@ class OnePass: host = extract_host(url) def filter_host(item): - """Exclude items that does not match host """ - if "url" in item["overview"]: - return host in item["overview"]["url"] + """Exclude items that does not match host on any configured URL""" + if "URLs" in item["overview"]: + return any(filter(lambda x: host in x["u"], item["overview"]["URLs"])) return False items = cls.list_items()