mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed bug with json scrobbling
This commit is contained in:
parent
25661f82af
commit
1321fcb45e
@ -5,7 +5,7 @@ author = {
|
||||
"email":"maloja@krateng.dev",
|
||||
"github": "krateng"
|
||||
}
|
||||
version = 2,8,0
|
||||
version = 2,8,1
|
||||
versionstr = ".".join(str(n) for n in version)
|
||||
links = {
|
||||
"pypi":"malojaserver",
|
||||
|
@ -247,7 +247,10 @@ def normalize_name(name):
|
||||
# an api key now ONLY permits scrobbling tracks, no other admin tasks
|
||||
def api_key_correct(request):
|
||||
args = request.params
|
||||
try:
|
||||
args.update(request.json)
|
||||
except:
|
||||
pass
|
||||
if "key" in args:
|
||||
apikey = args["key"]
|
||||
del args["key"]
|
||||
|
Loading…
Reference in New Issue
Block a user