修复小BUG导致无法上传

This commit is contained in:
Jerry Yan 2019-03-22 07:59:19 +08:00
parent c89f84a44f
commit 6842961d42

View File

@ -97,9 +97,9 @@ def download(url):
def encode(): def encode():
global isUpload global isUpload
while True: while True:
isUpload = False
i = eq.get() i = eq.get()
if os.path.exists(i): if os.path.exists(i):
isUpload = False
os.system("ffmpeg -i {} -c:v copy -c:a copy -f mp4 {}".format(i, i[:13] + ".mp4")) os.system("ffmpeg -i {} -c:v copy -c:a copy -f mp4 {}".format(i, i[:13] + ".mp4"))
uq.put(i[:13] + ".mp4") uq.put(i[:13] + ".mp4")
if config["mv"]: if config["mv"]: