~aleteoryx/lfm_embed

be166d93b7aabb5b260e21c10b1b247704858193 — alyx 10 months ago e5b8bfa
Add additional services to TODO.md
1 files changed, 28 insertions(+), 0 deletions(-)

M TODO.md
M TODO.md => TODO.md +28 -0
@@ 66,3 66,31 @@ A warning should be output on startup.

- `(range Number start: Number = 0): Number` Generates values from start to the main argument, exclusive.
- `(random): Number` Generates a random float.


## Additional Services to Support

This should be as transparent as possible to the theme and end-user.

### Services

- libre.fm
- listenbrainz
- hacienda if/when it gets off the ground.

### Config Entries

- `LFME_BACKEND_DEFAULT: string` specifies a default backend for /user/ requests..
- `LFME_BACKEND_ADDITIONAL_GNUKEBOX: string,*` specifies a set of additional domains supporting the libre.fm API.
- `LFME_BACKEND_ADDITIONAL_LISTENBRAINZ: string,*` specifies a set of additional domains supporting the listenbrainz API.
- `LFME_BACKEND_ADDITIONAL_AUDIOSCROBBLER: string,*` specifies a set of additional domains supporting the last.fm API.

### Query Parameters

- `?backend=(last.fm|libre.fm|listenbrainz|LFME_BACKEND_ADDITIONAL_*)`

### Context Members

- `user.service` never not null
- `user.service.type` `(audioscrobbler|listenbrainz|gnukebox)`
- `user.service.domain` the string for the service's domain.