From dd7262270ca9714d8d769fe66640d47cf1b9cb84 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Mon, 26 Aug 2024 17:34:32 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E6=94=B6=E9=9B=86.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/收集.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py/收集.py b/py/收集.py index 5cc338c..a9f156b 100644 --- a/py/收集.py +++ b/py/收集.py @@ -77,7 +77,7 @@ def process_file(file_path, encodings=['utf-8', 'gbk', 'latin1']): # 如果出现解码错误,尝试下一种编码 continue # 处理每一行,去除每一行中第一个$及其后的所有内容 - processed_lines = [line.split('$', 1)[0].rstrip('\n') + '\n' for line in lines] + processed_lines = [line.split('vvv', 1)[0].rstrip('\n') + '\n' for line in lines] # 将处理后的内容写回到文件,使用找到的正确编码 with open(file_path, 'w', encoding=encoding) as file: file.writelines(processed_lines) @@ -129,6 +129,7 @@ replacements = { "HD": "", "标清": "", "-": "", + "咪咕": "", "_": "", "超清": "", "频道": "",