Skip to content

Commit

Permalink
windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryu1845 committed Oct 23, 2021
1 parent 02573a3 commit 6729f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twspace_dl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import subprocess
import sys
from collections import defaultdict
from concurrent.futures import ProcessPoolExecutor
from concurrent.futures import ThreadPoolExecutor
from datetime import datetime
from functools import cached_property
from urllib.parse import urlparse
Expand Down Expand Up @@ -270,7 +270,7 @@ def download(self) -> None:
+ [f"{self.filename}.m4a"]
)

with ProcessPoolExecutor(max_workers=self.threads) as executor:
with ThreadPoolExecutor(max_workers=self.threads) as executor:
executor.map(subprocess.run, (cmd_new, cmd_old), timeout=60)
subprocess.run(cmd_final, check=True)
else:
Expand Down

0 comments on commit 6729f78

Please sign in to comment.