From 9f097fb0ce3fefb58b3fe02a930569ab67148084 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Wed, 21 Aug 2024 18:51:20 +0800 Subject: [PATCH] =?UTF-8?q?Update=20IPTV=E6=90=9C=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E6=93=8E=E9=87=87=E9=9B=86.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/IPTV搜索引擎采集.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/IPTV搜索引擎采集.py b/py/IPTV搜索引擎采集.py index 18296d7..a9b0697 100644 --- a/py/IPTV搜索引擎采集.py +++ b/py/IPTV搜索引擎采集.py @@ -207,13 +207,13 @@ for filename in os.listdir(folder_path): # 尝试打开视频流 cap = cv2.VideoCapture(url) start_time = time.time() - while (time.time() - start_time) < 5: + while (time.time() - start_time) < 3: ret, frame = cap.read() if not ret: break frame_count += 1 # 如果在3秒内读取到60帧以上,设置成功标志 - if frame_count >= 5: + if frame_count >= 45: success = True break cap.release()