diff --git a/adblock_to_domain_list.py b/adblock_to_domain_list.py index 4a4c017..168be16 100755 --- a/adblock_to_domain_list.py +++ b/adblock_to_domain_list.py @@ -14,9 +14,8 @@ import abp.filters def get_domains(rule: abp.filters.parser.Filter) -> typing.Iterable[str]: - for key, val in rule.options: - if key not in ('third-party',): - return + if rule.options: + return selector_type = rule.selector['type'] selector_value = rule.selector['value'] if selector_type == 'url-pattern' \