From 55d6693bb184824f06f37036f5d1a6419c948901 Mon Sep 17 00:00:00 2001 From: yuanzhen869 Date: Sat, 9 Nov 2024 07:23:27 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/convert?= =?UTF-8?q?=5Fsurge=5Fto=5Fgogost.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/convert_surge_to_gogost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/convert_surge_to_gogost.py b/.gitea/workflows/convert_surge_to_gogost.py index d4d3fda..914660f 100644 --- a/.gitea/workflows/convert_surge_to_gogost.py +++ b/.gitea/workflows/convert_surge_to_gogost.py @@ -56,7 +56,7 @@ os.makedirs(output_dir, exist_ok=True) # 逐个转换指定目录中的 Surge 规则文件 for filename in os.listdir(input_dir): - if filename.endswith(".txt"): # 假设规则文件以 .txt 结尾 + if filename.endswith(".list"): # 假设规则文件以 .txt 结尾 input_path = os.path.join(input_dir, filename) output_path = os.path.join(output_dir, filename) convert_surge_to_gogost(input_path, output_path) \ No newline at end of file