-
Notifications
You must be signed in to change notification settings - Fork 232
Add ability to find rarely played albums to the REST API #136
Comments
Comment by fxthomas This is a great idea! I'm concerned about one thing : how to expose this new API feature to clients safely? Ideally clients should be able to hide this feature from their UI if it is not supported by the server. This is the same problem faced by #69, by the way, so we're really going to have to think about it at some point. |
Comment by biconou I agree. Could be a great feature. |
Comment by fxthomas A quick and easy way to add features to the API could be to indicate if the server supports extensions (and which) in the response from the @biconou IMO there should be no need for an official app, especially given the number of existing options out there! I'm using DSub myself, how does Ultrasonic compare to it? |
Comment by bajansen The subsonic API already return version information in each response. Clients already should perform a check to see what version of the REST API a server is running. If libresonic were to implement its own new API features, we could simply change the 'subsonic-response' tag to 'libresonic-response' (as already accidentally happened once) so app developers can distinguish libresonic-API version X from subsonic-API version X. This decision should not be made lightly however. If we were to change the response tag, existing apps will have to be explicitly updated to support libresonic. If we choose to go this route, we should ship a setting to enable switching between the new libresonic API and the current subsonic API. Some more information regarding the API can be found on subsonic's website: http://www.subsonic.org/pages/api.jsp |
Comment by MichaelBechHansen One way to enable REST API compatibility would be to do like Ampache and Madsonic, and add a "type" field to all subsonic-response data. For example: Client apps can then check for the presence of type="libresonic", and enable whatever special support is available. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Issue by neilweber
Sunday Nov 06, 2016 at 06:15 GMT
Originally opened as https://github.com/Libresonic/libresonic/issues/136
With a large library, it's easy to overlook some albums/songs. A libresonic app should give the user a way to surface rarely played albums. The REST API can currently return the most frequently played albums but there is no way to find the least played albums. This can be changed by adding a new type value of "infrequent" to the getAlbumList and getAlbumList2 methods.
With my recent clean Libresonic installation, many albums still have their play count as 0, so I'm thinking there should be some randomness added to avoid getting the exact same albums on each request. The SQL query I'm thinking of using is this:
The text was updated successfully, but these errors were encountered: