mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Experimental support for Listenbrainz scrobblers
This commit is contained in:
@@ -660,8 +660,11 @@ def post_scrobble():
|
||||
def sapi(path):
|
||||
path = path.split("/")
|
||||
path = list(filter(None,path))
|
||||
keys = FormsDict.decode(request.params)
|
||||
headers = request.headers
|
||||
if "application/json" in request.get_header("Content-Type"):
|
||||
keys = request.json
|
||||
else:
|
||||
keys = FormsDict.decode(request.params)
|
||||
auth = request.auth
|
||||
return compliant_api.handle(path,keys,headers,auth)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user