From 101b27db7f46ad0ff117c5b3a9465903289bce8d Mon Sep 17 00:00:00 2001 From: tech234a <46801700+tech234a@users.noreply.github.com> Date: Sun, 20 Sep 2020 01:49:08 -0400 Subject: [PATCH] Tweaks --- export.py | 1 + worker.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/export.py b/export.py index 26f1d38..5927541 100644 --- a/export.py +++ b/export.py @@ -71,6 +71,7 @@ def subprrun(jobs, headers): if divs: myfs.write("\n") del divs + myfs.close() del myfs if soup.find("li", id="captions-editor-nav-metadata")["data-state"] != "locked": diff --git a/worker.py b/worker.py index 384b98f..2956189 100644 --- a/worker.py +++ b/worker.py @@ -161,7 +161,7 @@ while True: subthreads = [] - for r in range(5): + for r in range(50): subrunthread = Thread(target=subprrun, args=(subtjobs,headers)) subrunthread.start() subthreads.append(subrunthread)