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:
@@ -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","*")
|
||||
|
||||
Reference in New Issue
Block a user