dweymouth / supersonic

A lightweight and full-featured cross-platform desktop client for self-hosted music servers
GNU General Public License v3.0
668 stars 26 forks source link

feat: Add sorting options for Artists #366

Closed adamantike closed 2 months ago

adamantike commented 2 months ago

Include both Album Count and Random sortings for the Artists page.

This change also fixes the Artist search feature in Jellyfin, which was broken because of an open issue on Jellyfin [1]. The current workaround is to do the filtering locally after receiving all results from Jellyfin API.

Also, as the Jellyfin API doesn't include a sorting option for AlbumCount, we need to disable pagination when that option is selected, to receive all artists, and run the sorting locally.

[1] Related issue: https://github.com/jellyfin/jellyfin/issues/8222

dweymouth commented 2 months ago

Great feature - thanks so much!