bug fix, ffmpeg(autostart)

This commit is contained in:
2020-04-07 20:07:44 +08:00
parent 5a6aa84480
commit 502da86feb
4 changed files with 149 additions and 48 deletions

View File

@@ -39,12 +39,15 @@ class Datapack:
self.method = method
self.file = file
self.delete = delete
self.failed_times = 0
self.app = app
self.version = version
self.body = body
self.encode_data = b''
if self.head.get('from'):
self.head['from'] = process_plugins_name(self.head['from'])
else:
self.head['from'] = 'unkonwn_app'
if gen_flag:
randseed = str(random.random()).encode()
h = hashlib.sha1()