advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
6.63k stars 470 forks source link

[Bug]: Genres and Tags are case-sensitive when they should be case-insensitive and also not be able to be duplicates #2206

Closed Uroth closed 3 weeks ago

Uroth commented 1 year ago

Describe the issue

I noticed that when I clicked on the genre Science fiction on one of my books it only then returned 7 results. image image But I knew I had more books with that genre. So I went and looked up a book that should have been on the list, then I saw that book had the genre but it was with capital S and F and not a small f Science Fiction image When I then click on this genre I get the result I was expecting. image

So we have an issue with case sensitive genres and tags.

I also noticed that I could add the same genre and tag twice using lower and uppercase spelling. image Here I have Fantasy and fantasy and both return different results when clicked.

Maybe a fix from https://github.com/advplyr/audiobookshelf/issues/1198 to not allow the same genre and tag be entered twice?

Steps to reproduce the issue

  1. Click on genres or tags with different combinations of lower and upper case spelling and the results will be different.

Audiobookshelf version

2.4.4

How are you running audiobookshelf?

Docker

mikiher commented 3 weeks ago

@advplyr this is now fiixed for a long time, now also supporting non-ascii case-insensitivity. Let's close?