advplyr / audiobookshelf

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

[Enhancement]: Genre / subgenre tree support #1945

Open wtanksleyjr opened 12 months ago

wtanksleyjr commented 12 months ago

Describe the feature/enhancement

I'd like to be able to view and/or search for subgeneras within a given genre, so for example I would be able to click on the Fiction genre to see all fiction books (including sci-fi, drama, fantasy, and so on).

This is probably a long-term request, but most sources of Genre information actually treat the Genres as being a tree structure. For example, rather than a book being "Space Opera", it'll actually be "Fiction > Science Fiction & Fantasy > Science Fiction > Space Opera".

In the Audible API, this is reported as "Genre Ladders", with a book being given multiple genres like "Fiction > Fantasy > Epic" and "Action & Adventure > Thrillers" all at once. So the tree Audible uses can be indirectly deduced from its own metadata.

KaiStarkk commented 7 months ago

Nice idea. I haven't been able to get genres matched in a useful way so far, since the cleanliness of data on most providers is average at best. Would be nice.

wtanksleyjr commented 7 months ago

I found a workaround that kinda works ... what I do is extract every element of the "category ladder" into the "tags" field, and then put only one "most important" tag into the Genre. The way ABS works is loosely similar, as it puts the FIRST item in each category ladder into Genres and the rest into Tags, so I only have to retype 2-3 tags when I Match against Audible.

It's still very much a "gut feel" kind of thing, though.