jeffvli / sonixd

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

Random sorting of albums caps album count at 500 #413

Open dweymouth opened 1 year ago

dweymouth commented 1 year ago

Describe the bug On the albums page, with the Random sorting option, the album count (displayed in the little round bubble next to "Albums" in the page header) appears to max out at 500, even if there are more than 500 albums in the library.

This is with Navidrome, I don't know if the issue is present with Jellyfin.

To Reproduce Steps to reproduce the behavior:

  1. Connect to a Subsonic server (e.g. navidrome) with more than 500 albums in the library
  2. Go to the Albums page and sort by random.
  3. The displayed album count will be 500.
  4. Note that other sort orders that apply to the entire library (A-Z, recently added) display the correct album count.

Expected behavior Displaying albums in random sort order should show the same album count as alphabetical or recently added sorts.

Screenshots image image

Desktop (please complete the following information):

Additional context

I just tested what happens with pagination disabled. Using the A-Z or recently added sort, all albums are fetched. With random sort, even with pagination disabled, only 500 albums are fetched.