Spaces:
Running
Running
Commit
·
dbec2e2
1
Parent(s):
73c012d
Trrr stibidi dop dop dop dop dop yes yes yes yes shtib shtibidi dip dibidi wwww yes yes yes yes
Browse files- app.py +5 -1
- routes/config.json +1 -1
- routes/siteRoutes/sigGen.py +1 -1
- templates/4a1504d326b35eaad3b9d4f48b5119a6/403.html +0 -1
- templates/4a1504d326b35eaad3b9d4f48b5119a6/404.html +0 -1
- templates/4a1504d326b35eaad3b9d4f48b5119a6/429.html +0 -1
- templates/4a1504d326b35eaad3b9d4f48b5119a6/502.html +0 -1
app.py
CHANGED
@@ -25,6 +25,10 @@ def ratelimit_handler(e): return render_template('ratelimit.html')
|
|
25 |
def forbidden_handler(e): return render_template('forbidden.html')
|
26 |
@app.errorhandler(404)
|
27 |
def ratelimit_handler(e): return render_template('notfound.html')
|
|
|
|
|
|
|
|
|
28 |
|
29 |
#empty routes
|
30 |
@app.route('/yt/api/v1', methods=['GET', 'POST'])
|
@@ -80,5 +84,5 @@ def getBMPreview(): return osuApi.getPreview(request)
|
|
80 |
def getBMFull(): return osuApi.getFull(request)
|
81 |
|
82 |
if __name__ == "__main__":
|
83 |
-
app.run(host="0.0.0.0", port=7860
|
84 |
|
|
|
25 |
def forbidden_handler(e): return render_template('forbidden.html')
|
26 |
@app.errorhandler(404)
|
27 |
def ratelimit_handler(e): return render_template('notfound.html')
|
28 |
+
@app.errorhandler(500)
|
29 |
+
def ratelimit_handler(e): return render_template('intervalservererror.html')
|
30 |
+
@app.errorhandler(502)
|
31 |
+
def ratelimit_handler(e): return render_template('badgateway.html')
|
32 |
|
33 |
#empty routes
|
34 |
@app.route('/yt/api/v1', methods=['GET', 'POST'])
|
|
|
84 |
def getBMFull(): return osuApi.getFull(request)
|
85 |
|
86 |
if __name__ == "__main__":
|
87 |
+
app.run(host="0.0.0.0", port=7860)
|
88 |
|
routes/config.json
CHANGED
@@ -5,5 +5,5 @@
|
|
5 |
"static-path": "/app/static",
|
6 |
"previews-path": "/app/static/previews",
|
7 |
"signatures-db": "/app/signatures.db",
|
8 |
-
"buildVersion": "1.0
|
9 |
}
|
|
|
5 |
"static-path": "/app/static",
|
6 |
"previews-path": "/app/static/previews",
|
7 |
"signatures-db": "/app/signatures.db",
|
8 |
+
"buildVersion": "1.0 build53"
|
9 |
}
|
routes/siteRoutes/sigGen.py
CHANGED
@@ -11,7 +11,7 @@ def signatureGen(request):
|
|
11 |
|
12 |
userKey = hashlib.md5(uK.encode()).hexdigest()
|
13 |
text = f"--START SIGNATURE-- {userKey}{endtime} --END SIGNATURE--"
|
14 |
-
salt = hashlib.md5("funapi-salt".encode())
|
15 |
|
16 |
creatorKey = hashlib.md5(f"USERKEY={userKey};DATE={time.strftime('%Y-%m-%d')}".encode()).hexdigest()
|
17 |
|
|
|
11 |
|
12 |
userKey = hashlib.md5(uK.encode()).hexdigest()
|
13 |
text = f"--START SIGNATURE-- {userKey}{endtime} --END SIGNATURE--"
|
14 |
+
salt = hashlib.md5("funapi-salt".encode()).hexdigest()
|
15 |
|
16 |
creatorKey = hashlib.md5(f"USERKEY={userKey};DATE={time.strftime('%Y-%m-%d')}".encode()).hexdigest()
|
17 |
|
templates/4a1504d326b35eaad3b9d4f48b5119a6/403.html
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<html><head><title>403 Forbidden</title></head><body><center><h1>403 Forbidden</h1></center><hr><center>mangoo</center></body></html>
|
|
|
|
templates/4a1504d326b35eaad3b9d4f48b5119a6/404.html
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<html><head><title>404 Not Found</title></head><body><center><h1>404 Not Found</h1></center><hr><center>mangoo</center></body></html>
|
|
|
|
templates/4a1504d326b35eaad3b9d4f48b5119a6/429.html
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<html><head><title>429 Too Many Requests</title></head><body><center><h1>429 Too Many Requests</h1></center><hr><center>mangoo</center></body></html>
|
|
|
|
templates/4a1504d326b35eaad3b9d4f48b5119a6/502.html
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<html><head><title>502 Bad Gateway</title></head><body><center><h1>502 Bad Gateway</h1></center><hr><center>mangoo</center></body></html>
|
|
|
|