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)