From 8f20250dee3f41445a8f92cdcc4e71642ecbe080 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 25 Sep 2019 09:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=8B=E8=87=AA=E5=B7=B1=E5=86=99?= =?UTF-8?q?=E7=9A=84sb=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liveDownloader.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/liveDownloader.py b/liveDownloader.py index 8bbd8cd..0435bd0 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -176,11 +176,12 @@ def run(): continue time.sleep(5) else: - if _firstDown: - sleep(1800) # 防抖,避免主播因特殊情况下播导致直接投递了 - _firstDown = False - continue if not isEncode and not isDownload: + if _firstDown: + sleep(1800) # 防抖,避免主播因特殊情况下播导致直接投递了 + Common.api.updRoomInfo() + _firstDown = False + continue Common.uploadQueue.put(True) _firstDown = False isEncode = True