1
0
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:
Krateng 2020-08-31 23:04:39 +02:00
parent 25661f82af
commit 1321fcb45e
2 changed files with 5 additions and 2 deletions

View File

@ -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",

View File

@ -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
args.update(request.json)
try:
args.update(request.json)
except:
pass
if "key" in args:
apikey = args["key"]
del args["key"]