Skip to content

Fix empty Genres tab - #1670

Merged
Chaphasilor merged 2 commits into
finamp-app:redesignfrom
kontell:fix/genres-isfavorite-500
Jul 2, 2026
Merged

Fix empty Genres tab#1670
Chaphasilor merged 2 commits into
finamp-app:redesignfrom
kontell:fix/genres-isfavorite-500

Conversation

@kontell

@kontell kontell commented Jun 29, 2026

Copy link
Copy Markdown

Problem

The Genres tab is empty when online. Other tabs work and offline mode lists genres fine.

I had Claude (Opus 4.8) debug the issue and it came up with the below.

Cause

getIsFavoriteFilter returns false (instead of null) for the genres/mixed tabs when no favorite filter is active, so finamp sends isFavorite=false to the /Genres endpoint. Jellyfin 10.10/10.11 returns HTTP 500 on /Genres whenever isFavorite is present (true or false), so the request fails and the tab stays empty. /Items (used by the other tabs) accepts isFavorite=false, and offline never calls /Genres — which is why only the online Genres tab breaks.

Fix

Return null when the favorite filter is inactive, so isFavorite is omitted from the /Genres request.

Verification (Jellyfin 10.11.11)

  • /Genres?…&isFavorite=false → 500
  • /Genres?… (no isFavorite) → 200
  • /Items?…&isFavorite=false → 200

Out of scope

Filtering the Genres tab by favorites still won't work on 10.11 (that path sends isFavorite=true, which also 500s). That looks like a server-side bug in Jellyfin's /Genres endpoint and may be worth reporting upstream separately.

Fixes #1653

The Genres tab was the only music-screen tab that passes an isFavorite
query param. getIsFavoriteFilter returned `false` (not null) when no
favorite filter was active, so finamp sent `/Genres?...&isFavorite=false`.
Jellyfin 10.10/10.11 return HTTP 500 for /Genres on any isFavorite value,
which left the tab empty (offline was unaffected since it never hits
/Genres). Return null when the favorite filter is inactive so the param
is omitted.
@kontell kontell closed this Jun 29, 2026
@kontell kontell reopened this Jun 29, 2026
@kontell
kontell changed the base branch from main to redesign June 29, 2026 12:10
@kontell
kontell marked this pull request as ready for review June 29, 2026 12:11
@Chaphasilor

This comment was marked as outdated.

@Chaphasilor

Chaphasilor commented Jul 1, 2026

Copy link
Copy Markdown
Member

Whoops sorry, I got a bit confused about which branch and test server I was on 😅

So what I found is:

  • Jellyfin 10.11 is completely broken (no genres shown at all when filter is set to false)
  • Jellyfin 12.0-rc2 and 10.10 are "broken" in the same way (favorite genres are excluded when favorites filter is set to false, this seems like it's actually the desired behavior)

Your fix indeed works for all three versions, so thanks! It's what I would've done too, so props to Claude I guess ^^
Speaking of, could you please remove Claude as a co-author in the commit? You can keep the attribution and which model you used in the PR description, but the contributor section in Finamp is meant for humans :P
I can also do that myself, if you prefer.

@kontell
kontell force-pushed the fix/genres-isfavorite-500 branch from 176c937 to 29efa37 Compare July 2, 2026 09:42
@kontell

kontell commented Jul 2, 2026

Copy link
Copy Markdown
Author

Claude's been nixed now, thanks for reviewing this.

@Chaphasilor
Chaphasilor merged commit b2e05d0 into finamp-app:redesign Jul 2, 2026
@Chaphasilor

Copy link
Copy Markdown
Member

Awesome, thanks for whipping this up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Genres tab does not get populated

2 participants