tsani / apollo

HTTP MPD integration for Labcoders Radio
MIT License
4 stars 0 forks source link

Automatically append downloaded files to the current playlist #2

Closed tsani closed 7 years ago

tsani commented 7 years ago

See #1. With the refactor of /tracks proposed therein, we could implement a query-string parameter enqueue_at specifying that the acquired tracks should be enqueued at the given position. The position specifier would be the same as the position query-string parameter for PUT /playlist. Because we can't distinguish between a parameter being present but failing to parse and a parameter being absent, we will assume that that if enqueue_at is Nothing, then no enqueuing is to be performed. We can implement an additional query-string flag enqueue (no _at) whose value is ignored, but that serves to indicate that the default behaviour for PUT /playlist of enqueuing after the currently playing track in the playlist is desired.

tsani commented 7 years ago

Alternatively we can just say "too bad" because this can already be implemented client-side. (And has been implemented in the labdl script.)

tsani commented 7 years ago

As mentioned in the previous comment, we're not going to complicate the webservice API and instead just require clients to do this themselves.