diff --git a/download.py b/download.py index ece7820..08bcbfd 100644 --- a/download.py +++ b/download.py @@ -1,4 +1,4 @@ -import multiprocessing +import threading import requests import json import os @@ -8,8 +8,6 @@ def compile_list(): x=0 array = [] - print(mc_framework, mc_version) - with open('modlist.txt', 'r') as file: searchlist = file.readlines() @@ -100,9 +98,6 @@ def download(item, mc_framework, mc_version): print("Please wait!") - threads = [] - for item in list: - thread = multiprocessing.Process(target=download, args=(item, mc_framework, mc_version,)) - threads.append(threads) - thread.start() \ No newline at end of file + x = threading.Thread(target=download, args=(item, mc_framework, mc_version)) + x.start() \ No newline at end of file