From 3d796ce4475c059a6f0f118eb0c4f3e2d8222ff2 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 30 May 2022 07:59:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9D=E5=AF=B9=E8=B7=AF=E5=BE=84=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liveDownloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liveDownloader.py b/liveDownloader.py index cde0b2d..dde00fa 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -45,10 +45,10 @@ def download(): Common.api.updRoomInfo(True) finally: f.close() - if os.path.getsize(path) < Common.config["i_s"]: + if os.path.getsize(os.path.join(base_path, path)) < Common.config["i_s"]: Common.modifyLastDownloadStatus("Downloaded File >{}< is too small, will ignore it".format(path)) else: - Common.encodeQueue.put(path) + Common.encodeQueue.put(os.path.join(base_path, path)) Common.doUpdatePlaylist() Common.api.updRoomInfo(True)