mirror of
https://github.com/thewesker/lazy-dsi-file-downloader.git
synced 2025-12-20 04:21:09 -05:00
Fix failing unlaunch link
This commit is contained in:
6
main.py
6
main.py
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user