|
|
@ -29,7 +29,7 @@ print(args.o)
|
|
|
|
def download(project, what):
|
|
|
|
def download(project, what):
|
|
|
|
versionToDownload = what
|
|
|
|
versionToDownload = what
|
|
|
|
output = parsers.modrinth.getDownloadURL(project, what)
|
|
|
|
output = parsers.modrinth.getDownloadURL(project, what)
|
|
|
|
response = requests.get(output[0], stream=True, timeout=1)
|
|
|
|
response = requests.get(output[0], stream=True, timeout=10)
|
|
|
|
if args.o != None: # Check if user set an output filepath
|
|
|
|
if args.o != None: # Check if user set an output filepath
|
|
|
|
output_file = args.o
|
|
|
|
output_file = args.o
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|