diff --git a/README.md b/README.md index 7ed562e..212d1ef 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/compliant_api.py b/compliant_api.py index 434de00..24e4019 100644 --- a/compliant_api.py +++ b/compliant_api.py @@ -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() diff --git a/requirements.txt b/requirements.txt index e92ee2c..750c474 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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