Skip to content

Commit

Permalink
move subprocess main thread reset
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Sep 10, 2024
1 parent bd8502b commit 22f2419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ofscraper/actions/actions/download/batch/downloadbatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def process_dicts(username, model_id, filtered_medialist, posts):
log.info("Downloading in batch mode")
log_text_array = []
log_text_array.append(await textDownloader(posts, username=username))
common_globals.main_globals()
if read_args.retriveArgs().text_only:
return log_text_array, (0, 0, 0, 0, 0)
elif get_command() in {"manual","post_check","msg_check","story_check","paid_check"}:
Expand All @@ -72,7 +73,6 @@ async def process_dicts(username, model_id, filtered_medialist, posts):
log_text_array.append(empty_log)
return log_text_array, (0, 0, 0, 0, 0)
try:
common_globals.main_globals()
download_log_clear_helper()
with progress_utils.setup_download_progress_live(multi=True):
mediasplits = get_mediasplits(filtered_medialist)
Expand Down

0 comments on commit 22f2419

Please sign in to comment.