mirror of
https://github.com/thewesker/lazy-dsi-file-downloader.git
synced 2025-12-21 04:51:09 -05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a7bfd934e | ||
|
|
f09059791d | ||
|
|
9b42582d79 | ||
|
|
604ba5afa0 |
32
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
32
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: "[BUG] - "
|
||||||
|
labels: bug
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**Desktop (please complete the following information):**
|
||||||
|
- OS: [e.g. iOS]
|
||||||
|
- Python version [if using Python]
|
||||||
|
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here.
|
||||||
8
main.py
8
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)
|
||||||
|
|
||||||
@@ -667,7 +667,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
|
|
||||||
else: #Non Jeve Stobs worshippers
|
else: #Non Jeve Stobs worshippers
|
||||||
from tkmacosx import Button
|
from tkinter import Button
|
||||||
backgroundColour = "#252a34"
|
backgroundColour = "#252a34"
|
||||||
foregroundColour = "white"
|
foregroundColour = "white"
|
||||||
buttonColour = "#7289DA"
|
buttonColour = "#7289DA"
|
||||||
|
|||||||
Reference in New Issue
Block a user