1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Can now create multiple scrobbles from skipping back within a track

This commit is contained in:
Krateng
2018-11-28 12:29:02 +01:00
parent bb754c7911
commit 2221365536
3 changed files with 10 additions and 13 deletions

View File

@@ -24,12 +24,9 @@ def mainpage():
@route("/db/<pth:path>")
def database(pth):
keys = FormsDict.decode(request.query) # The Dal★Shabet handler
for k in keys:
print(keys[k])
keystring = "?"
for k in keys:
keystring += urllib.parse.quote(k) + "=" + urllib.parse.quote(keys[k]) + "&"
print(keystring)
contents = urllib.request.urlopen("http://localhost:" + str(DATABASE_PORT) + "/" + pth + keystring).read()
response.content_type = "application/json"
response.set_header("Access-Control-Allow-Origin","*")