mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 16:58:12 +00:00
Code cleanup
This commit is contained in:
@@ -12,15 +12,6 @@ from lib.render_workers.base_worker import RenderStatus
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
def post_job_to_server(input_path, job_list, hostname, server_port=8080):
|
||||
# Pack job data and submit to server
|
||||
job_files = {'file': (os.path.basename(input_path), open(input_path, 'rb'), 'application/octet-stream'),
|
||||
'json': (None, json.dumps(job_list), 'application/json')}
|
||||
|
||||
req = requests.post(f'http://{hostname}:{server_port}/api/add_job', files=job_files)
|
||||
return req
|
||||
|
||||
|
||||
def generate_thumbnail_for_job(job, thumb_video_path, thumb_image_path, max_width=320):
|
||||
|
||||
# Simple thread to generate thumbs in background
|
||||
|
||||
Reference in New Issue
Block a user