From c89f84a44fdef0851e69d5d917a42de08a9cde1c Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 21 Mar 2019 21:16:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E7=BC=96=E7=A0=81=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E5=87=BA=E9=94=99=E9=80=80=E5=87=BA=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E7=BB=A7=E7=BB=AD=E8=BF=9B=E8=A1=8C=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liveDownloader.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/liveDownloader.py b/liveDownloader.py index c0e0349..1175799 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -1,3 +1,4 @@ +import shutil import sys import time from datetime import datetime @@ -170,6 +171,10 @@ if __name__ == "__main__": ut = threading.Thread(target=upload, args=(d,)) ut.setDaemon(True) ut.start() + if not et.is_alive(): + et = threading.Thread(target=encode, args=()) + et.setDaemon(True) + et.start() if _count % 6 == 0: try: api.updRoomInfo()