View Single Post
Old 10-06-2022, 10:27 AM   #925
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Hukuro View Post
Can this plugin help me find all the books which are the first occurrences in any series (not necessarily volume 1)? I use Calibre 5.44.

Someone tried to help in another thread, suggested a custom column, but its code makes use of the book_values() function which doesn't work in my version.
This chain works for me. It sets a custom Yes/No column to Yes for the first book (lowest series_index) in each series, and undefined for all other books. You must change the selection modifier actions to use your column. You probably want to give the chain a keyboard shortcut.

Once you run the chain you can use search to find the books of interest. Or maybe a virtual library that shows only "first books".

I don't know if this is the best way to do it. I thought about using book variables instead of selections but that seemed somewhat more complicated. There are other ways to build the list of ids that might be faster.

EDIT: I tested it with calibre portable 5.44. It worked.
Attached Files
File Type: zip First book in series action chain.zip (810 Bytes, 194 views)

Last edited by chaley; 10-06-2022 at 10:54 AM.
chaley is offline   Reply With Quote