mirror of
https://github.com/KaringX/karing-ruleset.git
synced 2025-06-08 14:34:13 +08:00
drop le.com
This commit is contained in:
parent
3e4858799e
commit
267036231e
@ -60,7 +60,10 @@ def converto_json(src_file: str, out_path: str):
|
|||||||
row = line.split(",")
|
row = line.split(",")
|
||||||
if len(row) >= 2:
|
if len(row) >= 2:
|
||||||
rule, cont = row[0].upper(), row[1].strip()
|
rule, cont = row[0].upper(), row[1].strip()
|
||||||
if rule in MAP_RULES_KEY_DICT:
|
if 'le.com' == cont:
|
||||||
|
deug_log(f"row:{row} drop le.com/match google.com")
|
||||||
|
|
||||||
|
elif rule in MAP_RULES_KEY_DICT:
|
||||||
rkey = MAP_RULES_KEY_DICT[rule]
|
rkey = MAP_RULES_KEY_DICT[rule]
|
||||||
if rkey in content['rules'][0]:
|
if rkey in content['rules'][0]:
|
||||||
content['rules'][0][rkey].append(cont)
|
content['rules'][0][rkey].append(cont)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user