jeffvli / sonixd

A full-featured Subsonic/Jellyfin compatible desktop music player
GNU General Public License v3.0
1.86k stars 74 forks source link

Add option to fetch full song list #68

Open dln949 opened 3 years ago

dln949 commented 3 years ago

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?)

jeffvli commented 3 years ago

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 commented 3 years ago

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.

dln949 commented 3 years ago

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.