Fix failing unlaunch link

This commit is contained in:
YourKalamity
2021-02-09 12:11:56 +00:00
parent f09059791d
commit 2a7bfd934e

View File

@@ -43,7 +43,8 @@ def downloadFile(link, destination):
downloadLocation = destination + fileName downloadLocation = destination + fileName
open(downloadLocation, 'wb').write(r.content) open(downloadLocation, 'wb').write(r.content)
return downloadLocation return downloadLocation
except ConnectionError: except ConnectionError as e:
print(e)
print("File not available, skipping...") print("File not available, skipping...")
return None return None
@@ -243,14 +244,13 @@ def start():
if unlaunchNeeded == 1 : if unlaunchNeeded == 1 :
#Download Unlaunch #Download Unlaunch
url = "https://problemkaputt.de/unlaunch.zip" url = "https://web.archive.org/web/20210207235625if_/https://problemkaputt.de/unlaunch.zip"
outputbox("Downloading Unlaunch\n") outputbox("Downloading Unlaunch\n")
unlaunchLocation = downloadFile(url, cwdtemp) unlaunchLocation = downloadFile(url, cwdtemp)
if unlaunchLocation != None: if unlaunchLocation != None:
print("Unlaunch Downloaded") print("Unlaunch Downloaded")
outputbox("Unlaunch Downloaded\n") outputbox("Unlaunch Downloaded\n")
lineCounter = lineCounter + 1 lineCounter = lineCounter + 1
#Extract Unlaunch #Extract Unlaunch
unzipper(unlaunchLocation,directory) unzipper(unlaunchLocation,directory)