mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
Browsing by genre needs each genre's song count and a cover without loading the whole Library on the UI isolate. One query groups both sources by sort_genre (the trimmed, case-folded tag) and the stored spelling; Dart then merges spellings under the most common one. The Songs query gains a genre filter, so a genre's songs come from the same paged, shadow-aware read as the Songs list and use the existing sort_genre indexes.