From 107e9f434c64b0aa5afc61dfeec9b110eb85bd74 Mon Sep 17 00:00:00 2001 From: ihmily <961532186@qq.com> Date: Sun, 10 Dec 2023 05:20:37 +0800 Subject: [PATCH] Adjust kuaishou live parse method --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 62358ba..cd5ba5e 100644 --- a/main.py +++ b/main.py @@ -4,7 +4,7 @@ Author: Hmily GitHub: https://github.com/ihmily Date: 2023-07-17 23:52:05 -Update: 2023-12-10 04:39:32 +Update: 2023-12-10 05:13:20 Copyright (c) 2023 by Hmily, All Rights Reserved. Function: Record live stream video. """ @@ -26,6 +26,7 @@ import shutil from spider import ( get_douyin_stream_data, get_tiktok_stream_data, + get_kuaishou_stream_data, get_kuaishou_stream_data2, get_huya_stream_data, get_douyu_info_data, @@ -575,7 +576,7 @@ def start_record(url_tuple, count_variable=-1): elif record_url.find("https://live.kuaishou.com/") > -1: with semaphore: - json_data = get_kuaishou_stream_data2(record_url, ks_cookie) + json_data = get_kuaishou_stream_data(record_url, ks_cookie) port_info = get_kuaishou_stream_url(json_data) elif record_url.find("https://www.huya.com/") > -1: @@ -1284,4 +1285,4 @@ while True: first_run = False - time.sleep(3) + time.sleep(3) \ No newline at end of file