From 62628febd570be6544b2a799dc56fc3cac69608b Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Sat, 17 Aug 2024 20:54:27 +0800 Subject: [PATCH] =?UTF-8?q?Update=20iptv=E6=B5=81=E7=95=85=E5=BA=A6?= =?UTF-8?q?=E6=A3=80=E6=B5=8B.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/iptv流畅度检测.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/py/iptv流畅度检测.py b/py/iptv流畅度检测.py index 09a80d0..4cb30aa 100644 --- a/py/iptv流畅度检测.py +++ b/py/iptv流畅度检测.py @@ -1507,16 +1507,7 @@ for file_path in filter_files(files1, '.txt'): # os.remove('playlist/' + file_path) # 写入合并后的txt文件 with open("4.txt", "w", encoding="utf-8") as output: - output.write('\n\n'.join(file_contents)) - # 写入更新日期时间 - # file.write(f"{now_today}更新,#genre#\n") - # 获取当前时间 - local_tz = pytz.timezone("Asia/Shanghai") - now = datetime.now(local_tz) - # now = datetime.now() - output.write(f"\n更新时间,#genre#\n") - output.write(f"{now.strftime("%Y-%m-%d")},url\n") - output.write(f"{now.strftime("%H:%M:%S")},url\n") + output.write('\n\n'.join(file_contents)) output.close() print(f"电视频道成功写入")