From 2281f872bf9554372e3184038dff9bddac01273a Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 2 Dec 2020 08:11:16 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E5=88=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common.py | 2 +- liveDownloader.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Common.py b/Common.py index e825ec1..36610f9 100644 --- a/Common.py +++ b/Common.py @@ -328,8 +328,8 @@ class downloader(XiGuaLiveApi): _result = super(downloader, self).updRoomInfo(force) if _prev_status != self.isLive and not self.isLive: resetDelay() + broadcaster = self.broadcaster if _result: - broadcaster = self.broadcaster if self.isLive: self.updPlayList() else: diff --git a/liveDownloader.py b/liveDownloader.py index 54ddbf4..a99d9c0 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -5,9 +5,10 @@ import Common import os import requests +session = requests.session() + def download(): - session = requests.session() while Common.api.isLive and not Common.forceNotDownload: if not Common.streamUrl: Common.appendError("Download with No StreamUrl Specific") @@ -68,7 +69,7 @@ def upload(): Common.appendError(e.__str__()) continue finally: - time.sleep(120) + time.sleep(90) i = Common.uploadQueue.get() Common.appendUploadStatus("Upload Daemon Quiting")