Update iptv流畅度检测.py

This commit is contained in:
frxz751113
2024-08-18 01:40:26 +08:00
committed by GitHub
parent 82bfc629c1
commit 4bb8ab6889
+1 -1
View File
@@ -569,7 +569,7 @@ def check_and_write_file(input_file, output_file, keywords):
file_size = os.path.getsize(output_file) file_size = os.path.getsize(output_file)
# 如果文件大小小于30字节(假设的最小文件大小),删除文件 # 如果文件大小小于30字节(假设的最小文件大小),删除文件
if file_size < 800: if file_size < 500:
os.remove(output_file) os.remove(output_file)
print(f"文件只包含头部信息,{output_file} 已被删除。") print(f"文件只包含头部信息,{output_file} 已被删除。")
else: else: