[Bug]: Switching libraries with filter on results in display of UUID instead of name #1903

Open
opened 2026-04-25 00:01:13 +02:00 by adam · 2 comments
Owner

Originally created by @ZLoth on GitHub (Apr 22, 2024).

Describe the issue

When switching libraries, if I have a filter set and there are no matches, I should see the actual name instead of a UUID

image

Steps to reproduce the issue

  1. Select a library (e.g. Fiction)
  2. Enable a filter (e.g. Author → Charles Dickens)
  3. Switch to another library (e.g. Westerns)

WHAT SHOULD HAPPEN: Message displays No Results for filter "Authors: Charles Dickens"
WHAT REALLY HAPPENS: Message displays No Results for filter "Authors: b75f25b8-26bd-4cd1-b998-efb5739b575a"

https://github.com/advplyr/audiobookshelf/assets/6700159/c6519477-c906-41a8-99f7-c1ab0c4f3723

Audiobookshelf version

2.8.1, 2.9.0

How are you running audiobookshelf?

Docker

Originally created by @ZLoth on GitHub (Apr 22, 2024). ### Describe the issue When switching libraries, if I have a filter set and there are no matches, I should see the actual name instead of a UUID ![image](https://github.com/advplyr/audiobookshelf/assets/6700159/472f65a7-ec28-44ec-a4bf-a9cd6cf9ff7a) ### Steps to reproduce the issue 1. Select a library (e.g. Fiction) 2. Enable a filter (e.g. Author → Charles Dickens) 3. Switch to another library (e.g. Westerns) WHAT SHOULD HAPPEN: Message displays **No Results for filter "Authors: Charles Dickens"** WHAT REALLY HAPPENS: Message displays **No Results for filter "Authors: b75f25b8-26bd-4cd1-b998-efb5739b575a"** https://github.com/advplyr/audiobookshelf/assets/6700159/c6519477-c906-41a8-99f7-c1ab0c4f3723 ### Audiobookshelf version 2.8.1, 2.9.0 ### How are you running audiobookshelf? Docker
adam added the bugsorting/filtering/searching labels 2026-04-25 00:01:13 +02:00
Author
Owner

@ZLoth commented on GitHub (Apr 22, 2024):

I just installed the 2.9.0 version and issue is still occurring.

@ZLoth commented on GitHub (Apr 22, 2024): I just installed the 2.9.0 version and issue is still occurring.
Author
Owner

@mikiher commented on GitHub (Mar 2, 2025):

I looked into this, and it's a bit tricky to fix.

I think the crux of the issue is that we're keeping a global (per-user) state for things like filterBy, while we should really be keeping a per-library state (i.e. the filterBy expression for some library should have no bearing on the filterBy expression of another library).

I don't think this is a high priority problem, but I'l get back to it at some point - the current behavior doesn't really make sense.

@mikiher commented on GitHub (Mar 2, 2025): I looked into this, and it's a bit tricky to fix. I think the crux of the issue is that we're keeping a global (per-user) state for things like filterBy, while we should really be keeping a per-library state (i.e. the filterBy expression for some library should have no bearing on the filterBy expression of another library). I don't think this is a high priority problem, but I'l get back to it at some point - the current behavior doesn't really make sense.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1903