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",
|
"email":"maloja@krateng.dev",
|
||||||
"github": "krateng"
|
"github": "krateng"
|
||||||
}
|
}
|
||||||
version = 2,8,0
|
version = 2,8,1
|
||||||
versionstr = ".".join(str(n) for n in version)
|
versionstr = ".".join(str(n) for n in version)
|
||||||
links = {
|
links = {
|
||||||
"pypi":"malojaserver",
|
"pypi":"malojaserver",
|
||||||
|
@ -247,7 +247,10 @@ def normalize_name(name):
|
|||||||
# an api key now ONLY permits scrobbling tracks, no other admin tasks
|
# an api key now ONLY permits scrobbling tracks, no other admin tasks
|
||||||
def api_key_correct(request):
|
def api_key_correct(request):
|
||||||
args = request.params
|
args = request.params
|
||||||
args.update(request.json)
|
try:
|
||||||
|
args.update(request.json)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
if "key" in args:
|
if "key" in args:
|
||||||
apikey = args["key"]
|
apikey = args["key"]
|
||||||
del args["key"]
|
del args["key"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user