diff --git a/main.py b/main.py index f4ee0fe..b88bf12 100644 --- a/main.py +++ b/main.py @@ -1746,7 +1746,7 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None: "-reconnect_streamed", "1", "-reconnect_at_eof", "1", "-reconnect_delay_max", "10", - "-http_persistent", "1", + # "-http_persistent", "1", #移除无效的 "-multiple_requests", "1", # 输入端:让 YouTube 认为这是“完美真人源” @@ -1756,6 +1756,7 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None: "-thread_queue_size", "32768", "-user_agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36", "-headers", douyin_headers, + "-http_seekable", "0", # 新增:优化 HLS 非可寻址流 "-i", real_url, # 视频参数:YouTube 2026 年权重天花板配置