[Bug]: Library count permission filtering by tag is not updated until container is restarted #2691

Closed
opened 2026-04-25 00:09:39 +02:00 by adam · 1 comment
Owner

Originally created by @Bothari on GitHub (Mar 26, 2025).

What happened?

I have an admin account, covers, that has the option "Tags not accessible to user" set to filter out books with the tag "Clean Cover". When viewing the web interface with that account and modifying the tags on books to include the tag "Clean Cover" these books are removed from the library for that user, however the "Count" at the top left of the Library screen does not change. Additionally, placeholder cover squares are presented at the end of the library, presumably filling in the extra spaces represented by filtered out books.

Image below shows an example of this. At the time, the user was only able to see around 100 books, despite the count in the top left reading 737.

Upon restarting of the Docker container, this is updated correctly.

Image

What did you expect to happen?

The count of books in the library should update as tags are modified.

Steps to reproduce the issue

  1. Create a new admin account, covers, and set the option "Tags not accessible to user" to "Clean Cover".
  2. Login to the web interface as that account.
  3. Navigate to the Library screen and note the count of books in the top left corner.
  4. Modify the tags on one of your books to include the tag "Clean Cover".
  5. Navigate back to the Library screen and note that the count of books in the top left corner has not change, but the book you tagged is no longer visible.
  6. Navigate to the bottom of the Library screen and notice a placeholder cover icon.

Audiobookshelf version

v2.20.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Chrome

Logs


Additional Notes

No response

Originally created by @Bothari on GitHub (Mar 26, 2025). ### What happened? I have an admin account, `covers`, that has the option "Tags not accessible to user" set to filter out books with the tag "Clean Cover". When viewing the web interface with that account and modifying the tags on books to include the tag "Clean Cover" these books are removed from the library for that user, however the "Count" at the top left of the Library screen does not change. Additionally, placeholder cover squares are presented at the end of the library, presumably filling in the extra spaces represented by filtered out books. Image below shows an example of this. At the time, the user was only able to see around 100 books, despite the count in the top left reading 737. Upon restarting of the Docker container, this is updated correctly. ![Image](https://github.com/user-attachments/assets/acc0eef8-d35b-423b-bf91-f58b4eb1120b) ### What did you expect to happen? The count of books in the library should update as tags are modified. ### Steps to reproduce the issue 1. Create a new admin account, `covers`, and set the option "Tags not accessible to user" to "Clean Cover". 2. Login to the web interface as that account. 3. Navigate to the Library screen and note the count of books in the top left corner. 4. Modify the tags on one of your books to include the tag "Clean Cover". 5. Navigate back to the Library screen and note that the count of books in the top left corner has not change, but the book you tagged is no longer visible. 6. Navigate to the bottom of the Library screen and notice a placeholder cover icon. ### Audiobookshelf version v2.20.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Chrome ### Logs ```shell ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:09:39 +02:00
adam closed this issue 2026-04-25 00:09:39 +02:00
Author
Owner

@github-actions[bot] commented on GitHub (Apr 27, 2025):

Fixed in v2.21.0.

@github-actions[bot] commented on GitHub (Apr 27, 2025): Fixed in [v2.21.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.21.0).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2691