fix smth i broke
This commit is contained in:
parent
363bfd42d8
commit
e816eae2e5
@ -13,9 +13,9 @@ fileList = [
|
|||||||
|
|
||||||
def download_and_save(url):
|
def download_and_save(url):
|
||||||
r = requests.get(url)
|
r = requests.get(url)
|
||||||
|
print(r)
|
||||||
if 'Requests:' in r.text:
|
if 'Requests:' in r.text:
|
||||||
with open("./logs", "w") as f:
|
|
||||||
f.write(r.text)
|
|
||||||
print(r.text)
|
print(r.text)
|
||||||
print(r.headers['Content-Type'])
|
print(r.headers['Content-Type'])
|
||||||
fileInstallingCreator = os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.basename(url))
|
fileInstallingCreator = os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.basename(url))
|
||||||
@ -29,7 +29,7 @@ def upd(command):
|
|||||||
|
|
||||||
threads = []
|
threads = []
|
||||||
for url in fileList:
|
for url in fileList:
|
||||||
thread = threading.Thread(target=download_and_save, args=(url))
|
thread = threading.Thread(target=download_and_save, args=(url,))
|
||||||
threads.append(thread)
|
threads.append(thread)
|
||||||
thread.start()
|
thread.start()
|
||||||
text = ""
|
text = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user