View Single Post
Old 03-31-2024, 09:36 AM   #14
martalak
Junior Member
martalak began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2024
Device: Kobo Aura
Unfortunately, doesn't work as expected at my end. All books get marked as Nonfiction, because there is no Fiction tag. Which means, that Child44 From Tom Rob Smith is marked as Nonfiction.Thriller.

It seems that many books (at least the ones in my library) don't have the tag/shelve Fiction or Nonfiction added.

I changed
Code:
top_tag = str_in_list(tags, ',', 'Fiction', 'Fiction', 'Nonfiction');
to
Code:
top_tag = list_item(tags, 0, ',')
and
Code:
first_subtag = list_item(subtags, 0, ',');
to
Code:
first_subtag = list_item(subtags, 1, ',');
which makes a bit more sense.

But, sad to say, tags seem to be just abritary words which means you will never get a real clean list.

Thank for you effort and hope some others can use my changes to have it work for them.
martalak is offline   Reply With Quote