录播工具改进:下载完毕后用ffmpeg过一遍再上传,避免视频文件错误

This commit is contained in:
2019-02-02 12:05:01 +08:00
parent b8b793e292
commit 530522f51c
2 changed files with 31 additions and 16 deletions

View File

@ -12,8 +12,6 @@ import hashlib
import requests
from urllib import parse
from config import config
class VideoPart:
def __init__(self, path, title='', desc=''):
@ -325,12 +323,8 @@ class Bilibili:
"videos": self.videos}
)
print(r.text)
if config["mv"]:
for _p in self.files:
shutil.move(_p.path, config["mtd"])
elif config["del"]:
for _p in self.files:
os.remove(_p.path)
self.files.clear()
self.videos.clear()
def appendUpload(self,
aid,