Updated nimrodel version to fix listenbrainz scrobbling

This commit is contained in:
Krateng 2019-05-26 10:28:59 +02:00
parent f096754139
commit 52ab0311d6
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ Also neat: You can use your **custom artist or track images**.
* [bottle.py](https://bottlepy.org/) - [GitHub](https://github.com/bottlepy/bottle)
* [waitress](https://docs.pylonsproject.org/projects/waitress/) - [GitHub](https://github.com/Pylons/waitress)
* [doreah](https://pypi.org/project/doreah/) - [GitHub](https://github.com/krateng/doreah) (at least Version 0.9.1)
* [nimrodel](https://pypi.org/project/nimrodel/) - [GitHub](https://github.com/krateng/nimrodel) (at least Version 0.4.5)
* [nimrodel](https://pypi.org/project/nimrodel/) - [GitHub](https://github.com/krateng/nimrodel) (at least Version 0.4.8)
* [setproctitle](https://pypi.org/project/setproctitle/) - [GitHub](https://github.com/dvarrazzo/py-setproctitle)
* If you'd like to display images, you will need API keys for [Last.fm](https://www.last.fm/api/account/create) and [Fanart.tv](https://fanart.tv/get-an-api-key/). These are free of charge!

View File

@ -174,7 +174,7 @@ class LBrnz1(APIHandler):
}
self.errors = {
BadAuthException:(401,{"code":401,"error":"You need to provide an Authorization header."}),
InvalidAuthException:(401,{"code":401,"error":"Bad Auth"}),
InvalidAuthException:(401,{"code":401,"error":"Incorrect Authorization"}),
InvalidMethodException:(200,{"code":200,"error":"Invalid Method"}),
MalformedJSONException:(400,{"code":400,"error":"Invalid JSON document submitted."}),
ScrobblingException:(500,{"code":500,"error":"Unspecified server error."})
@ -186,7 +186,7 @@ class LBrnz1(APIHandler):
def submit(self,pathnodes,keys):
try:
token = keys.get("Authorization").replace("token ","").strip()
token = keys.get("Authorization").replace("token ","").replace("Token ","").strip()
except:
raise BadAuthException()

View File

@ -1,5 +1,5 @@
bottle>=0.12.16
waitress>=1.3
doreah>=0.9.1
nimrodel>=0.4.5
nimrodel>=0.4.8
setproctitle>=1.1.10