mirror of
https://github.com/TG-Twilight/AWAvenue-Ads-Rule.git
synced 2025-11-04 14:49:47 +08:00
10 lines
334 B
Python
Executable File
10 lines
334 B
Python
Executable File
def format_domain(List):
|
|
domain = []
|
|
for line in List:
|
|
domain_lines = f".{line.strip()}"
|
|
domain.append(domain_lines)
|
|
return domain
|
|
|
|
def build(rule):
|
|
list = format_domain(rule.domain_list) + format_domain(rule.suffix_list)
|
|
return {'list': list, 'suffix': '.list', 'comment': '#', 'total': len(list)} |