From 18c02b51562baa05767d7c983d22623d3697b1fd Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 12 Jan 2020 09:00:03 +0800 Subject: [PATCH] stream timeout set small --- liveDownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liveDownloader.py b/liveDownloader.py index f0bed4b..4b4f8f8 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -13,7 +13,7 @@ def download(): Common.appendError("Download with No StreamUrl Specific") break path = datetime.strftime(datetime.now(), "%Y%m%d_%H%M.flv") - p = session.get(Common.streamUrl, stream=True, timeout=5) + p = session.get(Common.streamUrl, stream=True, timeout=3) if p.status_code != 200: Common.appendDownloadStatus("Download with Response {}".format(p.status_code)) Common.api.updRoomInfo(True)