mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Updated nimrodel version to fix listenbrainz scrobbling
This commit is contained in:
parent
f096754139
commit
52ab0311d6
@ -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)
|
* [bottle.py](https://bottlepy.org/) - [GitHub](https://github.com/bottlepy/bottle)
|
||||||
* [waitress](https://docs.pylonsproject.org/projects/waitress/) - [GitHub](https://github.com/Pylons/waitress)
|
* [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)
|
* [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)
|
* [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!
|
* 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!
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ class LBrnz1(APIHandler):
|
|||||||
}
|
}
|
||||||
self.errors = {
|
self.errors = {
|
||||||
BadAuthException:(401,{"code":401,"error":"You need to provide an Authorization header."}),
|
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"}),
|
InvalidMethodException:(200,{"code":200,"error":"Invalid Method"}),
|
||||||
MalformedJSONException:(400,{"code":400,"error":"Invalid JSON document submitted."}),
|
MalformedJSONException:(400,{"code":400,"error":"Invalid JSON document submitted."}),
|
||||||
ScrobblingException:(500,{"code":500,"error":"Unspecified server error."})
|
ScrobblingException:(500,{"code":500,"error":"Unspecified server error."})
|
||||||
@ -186,7 +186,7 @@ class LBrnz1(APIHandler):
|
|||||||
|
|
||||||
def submit(self,pathnodes,keys):
|
def submit(self,pathnodes,keys):
|
||||||
try:
|
try:
|
||||||
token = keys.get("Authorization").replace("token ","").strip()
|
token = keys.get("Authorization").replace("token ","").replace("Token ","").strip()
|
||||||
except:
|
except:
|
||||||
raise BadAuthException()
|
raise BadAuthException()
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
bottle>=0.12.16
|
bottle>=0.12.16
|
||||||
waitress>=1.3
|
waitress>=1.3
|
||||||
doreah>=0.9.1
|
doreah>=0.9.1
|
||||||
nimrodel>=0.4.5
|
nimrodel>=0.4.8
|
||||||
setproctitle>=1.1.10
|
setproctitle>=1.1.10
|
||||||
|
Loading…
Reference in New Issue
Block a user