1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Updated Readme

This commit is contained in:
Krateng 2020-09-04 00:15:53 +02:00
parent dad75dbbc2
commit 0b54999a1c
2 changed files with 6 additions and 6 deletions

View File

@ -129,14 +129,14 @@ You can use any third-party scrobbler that supports the audioscrobbler (GNUFM) o
GNU FM |   GNU FM |  
------ | --------- ------ | ---------
Gnukebox URL | Your Maloja URL followed by `/api/s/audioscrobbler` Gnukebox URL | Your Maloja URL followed by `/apis/audioscrobbler`
Username | Any name, doesn't matter Username | Any name, doesn't matter (don't leave empty)
Password | Any of your API keys Password | Any of your API keys
ListenBrainz |   ListenBrainz |  
------ | --------- ------ | ---------
API URL | Your Maloja URL followed by `/api/s/listenbrainz` API URL | Your Maloja URL followed by `/apis/listenbrainz`
Username | Any name, doesn't matter Username | Any name, doesn't matter (don't leave empty)
Auth Token | Any of your API keys Auth Token | Any of your API keys
These are tested with the Pano Scrobbler and the Simple Last.fm Scrobbler for Android. I'm thankful for any feedback whether other scrobblers work! These are tested with the Pano Scrobbler and the Simple Last.fm Scrobbler for Android. I'm thankful for any feedback whether other scrobblers work!

View File

@ -9,7 +9,7 @@ from urllib.parse import urlencode
native_apis = [ native_apis = [
native_v1.api native_v1.api
] ]
thirdparty_apis = [ standardized_apis = [
Listenbrainz(), Listenbrainz(),
Audioscrobbler() Audioscrobbler()
] ]
@ -18,7 +18,7 @@ def init_apis(server):
for api in native_apis: for api in native_apis:
api.mount(server=server,path="apis/"+api.__apipath__) api.mount(server=server,path="apis/"+api.__apipath__)
for api in thirdparty_apis: for api in standardized_apis:
aliases = api.__aliases__ aliases = api.__aliases__
canonical = aliases[0] canonical = aliases[0]
api.nimrodelapi.mount(server=server,path="apis/" + canonical) api.nimrodelapi.mount(server=server,path="apis/" + canonical)