mirror of https://github.com/jerome158/LIVETV.git
chore: speed test log path
This commit is contained in:
parent
bf42fa530d
commit
8562cace03
|
|
@ -177,8 +177,8 @@ def show_epg_gz():
|
|||
|
||||
@app.route("/log")
|
||||
def show_log():
|
||||
if os.path.exists(constants.sort_log_path):
|
||||
with open(constants.sort_log_path, "r", encoding="utf-8") as file:
|
||||
if os.path.exists(constants.speed_test_log_path):
|
||||
with open(constants.speed_test_log_path, "r", encoding="utf-8") as file:
|
||||
content = file.read()
|
||||
else:
|
||||
content = constants.waiting_tip
|
||||
|
|
|
|||
|
|
@ -737,7 +737,7 @@ def sort_channel_result(channel_data, result, filter_host=False, ipv6_support=Tr
|
|||
Sort channel result
|
||||
"""
|
||||
channel_result = defaultdict(lambda: defaultdict(list))
|
||||
logger = get_logger(constants.sort_log_path, level=INFO, init=True)
|
||||
logger = get_logger(constants.speed_test_log_path, level=INFO, init=True)
|
||||
for cate, obj in channel_data.items():
|
||||
for name, values in obj.items():
|
||||
if not values:
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ hls_ipv6_result_path = os.path.join(output_dir, "ipv6/hls.txt")
|
|||
|
||||
cache_path = os.path.join(output_dir, "data/cache.pkl.gz")
|
||||
|
||||
sort_log_path = os.path.join(output_dir, "log/sort.log")
|
||||
speed_test_log_path = os.path.join(output_dir, "log/speed_test.log")
|
||||
|
||||
log_path = os.path.join(output_dir, "log/log.log")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue