sonixd icon indicating copy to clipboard operation
sonixd copied to clipboard

Add option to fetch full song list

Open dln949 opened this issue 2 years ago • 3 comments

version 0.4.1 of the appimage on Ubuntu Bionic.

My music library consists of over 12,000 songs, in several hundred nested directories.

In Sonixd, how do I show a list of all the songs in the library? I can't figure out how to do that.

I did create a playlist in which I added all songs - well, not really all, more on that in the postscript below - but a playlist is static. Every time I add a new song to the library, I assume I would also have to add it to this playlist in Sonixd as well. Correct?

What I'm looking for is a list of songs in Sonixd that shows all songs in the music library at that moment. How do I do that in Sonixd?

Thanks.

(P.S.: As I wrote, I have over 12,000 songs. The way I added them to the playlist is I selected all folders, and then added them to the playlist. It took about two minutes for Sonixd to do that, but - it only added about 11,300 songs. Is there some upper limit to the number of songs Sonixd can add to a playlist?)

dln949 avatar Nov 05 '21 05:11 dln949

I did create a playlist in which I added all songs - well, not really all, more on that in the postscript below - but a playlist is static. Every time I add a new song to the library, I assume I would also have to add it to this playlist in Sonixd as well. Correct?

Correct.

Unfortunately there's no native Subsonic API endpoint that allows us to retrieve the list of all the songs from the library.

The main method of organization from the API is using albums, so if your library is properly tagged, then you should browse the Album page with the filter Recently Added to see all your new incoming albums (which contain the songs).

Using the Album page and filtering by A-Z ..., selecting all and playing is probably the fastest way to get all your songs. This may not be 100% though as if your song is not properly tagged to an album it will be missed. Having tested with both the Folder and Album page, album is generally more reliable as using the folder view usually results in having to make more network requests to your server to get the results. This can vary especially depending on your music folder structure.

Albums will only have to make 1 request to the server per album, while folders will make a request for each folder recursively (grabs your nested folders one at a time) so take that into consideration when you use both of them.

jeffvli avatar Nov 05 '21 12:11 jeffvli

I'll consider adding a client-side option of scanning your server for all the tracks and writing it to a local database so that you'll be able to periodically refetch the full song list.

jeffvli avatar Nov 05 '21 15:11 jeffvli

I'll considering adding a client-side option of scanning your server for all the tracks and writing it to a local database so that you'll be able to periodically refetch the full song list.

If that is practical, that would be a great option to have.

dln949 avatar Nov 05 '21 16:11 dln949