mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-26 05:48:32 +08:00
Adjust kuaishou live parse method
This commit is contained in:
parent
10f56fdb5c
commit
107e9f434c
7
main.py
7
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)
|
||||
Loading…
x
Reference in New Issue
Block a user