Update iptv流畅度检测.py
This commit is contained in:
@@ -1508,15 +1508,6 @@ for file_path in filter_files(files1, '.txt'):
|
|||||||
# 写入合并后的txt文件
|
# 写入合并后的txt文件
|
||||||
with open("4.txt", "w", encoding="utf-8") as output:
|
with open("4.txt", "w", encoding="utf-8") as output:
|
||||||
output.write('\n\n'.join(file_contents))
|
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.close()
|
output.close()
|
||||||
print(f"电视频道成功写入")
|
print(f"电视频道成功写入")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user