From 82f115956dcea9257c3a7968f12d8e6c30027f6c Mon Sep 17 00:00:00 2001 From: ssili126 <112532343+ssili126@users.noreply.github.com> Date: Fri, 1 Mar 2024 21:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20itv=5Fall.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itv_all.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/itv_all.py b/itv_all.py index d2e664adca..02dbdb5883 100644 --- a/itv_all.py +++ b/itv_all.py @@ -275,12 +275,12 @@ def channel_key(channel_name): results.sort(key=lambda x: channel_key(x[0])) # 将结果写入文件 -with open("itv_all_results.txt", 'w', encoding='utf-8') as file: +with open("itv_results.txt", 'w', encoding='utf-8') as file: for result in results: channel_name, channel_url, speed = result file.write(f"{channel_name},{channel_url},{speed}\n") -with open("itv_all_speed.txt", 'w', encoding='utf-8') as file: +with open("itv_speed.txt", 'w', encoding='utf-8') as file: for result in results: channel_name, channel_url, speed = result file.write(f"{channel_name},{channel_url}\n") @@ -288,7 +288,7 @@ def channel_key(channel_name): result_counter = 8 # 每个频道需要的个数 -with open("itv_all.txt", 'w', encoding='utf-8') as file: +with open("itvlist.txt", 'w', encoding='utf-8') as file: channel_counters = {} file.write('央视频道,#genre#\n') for result in results: @@ -332,7 +332,7 @@ def channel_key(channel_name): file.write(f"{channel_name},{channel_url}\n") channel_counters[channel_name] = 1 -with open("itv_all.m3u", 'w', encoding='utf-8') as file: +with open("itvlist.m3u", 'w', encoding='utf-8') as file: channel_counters = {} file.write('#EXTM3U\n') for result in results: