Emeg Fix
This commit is contained in:
parent
9a3d3bd048
commit
80ac42075e
@ -96,12 +96,15 @@ def download(url):
|
|||||||
download(url)
|
download(url)
|
||||||
|
|
||||||
def encode():
|
def encode():
|
||||||
i = eq.get()
|
|
||||||
while True:
|
while True:
|
||||||
|
i = eq.get()
|
||||||
if(os.path.exists(i)):
|
if(os.path.exists(i)):
|
||||||
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"]:
|
||||||
|
shutil.move(i, config["mtd"])
|
||||||
|
elif config["del"]:
|
||||||
|
os.remove(i)
|
||||||
|
|
||||||
def upload(date=datetime.strftime(datetime.now(), "%Y_%m_%d")):
|
def upload(date=datetime.strftime(datetime.now(), "%Y_%m_%d")):
|
||||||
print("{} : Upload Daemon Starting".format(datetime.strftime(datetime.now(), "%y%m%d %H%M")))
|
print("{} : Upload Daemon Starting".format(datetime.strftime(datetime.now(), "%y%m%d %H%M")))
|
||||||
@ -125,9 +128,6 @@ def upload(date=datetime.strftime(datetime.now(), "%Y_%m_%d")):
|
|||||||
b.preUpload(VideoPart(i, os.path.basename(i)))
|
b.preUpload(VideoPart(i, os.path.basename(i)))
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
if config["mv"]:
|
|
||||||
shutil.move(i, config["mtd"])
|
|
||||||
elif config["del"]:
|
|
||||||
os.remove(i)
|
os.remove(i)
|
||||||
i = uq.get()
|
i = uq.get()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user