Update download_video.py

This commit is contained in:
Plachtaa
2023-03-05 16:25:38 +08:00
committed by GitHub
parent 11b2ea0f88
commit 1698f0dd8a
+2 -2
View File
@@ -33,5 +33,5 @@ def download_video(info):
if __name__ == "__main__":
infos = generate_infos()
with ThreadPoolExecutor(max_workers=os.cpu_count() - 2) as executor:
executor.map(download_video, infos)
with ThreadPoolExecutor(max_workers=os.cpu_count()) as executor:
executor.map(download_video, infos)