View Single Post
Old 05-18-2011, 01:00 PM   #865
ElizabethN
reader, ebook junkie
ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.
 
ElizabethN's Avatar
 
Posts: 113
Karma: 436806
Join Date: Dec 2007
Location: western nebraska
Device: in use kindle oasis 2nd and 3rd gen, kobo forma, boox poke5
Quote:
Originally Posted by meme View Post
@ElizabethN - try this version. It should fix your issue with the number of books in a collection not being correct when using split. Thanks for the debug output

It was a simple error in the code. When I added the split collection feature I neglected to append the books to the collection name if it already existed and instead overwrote was was already saved. Previously before splitting the name could only appear once in the list I used so I just defined the collection to contain the books found for it in Calibre. With splitting added, the name could appear several times for each entry from Calibre and the code was just replacing the current list of books with the new books it found. So if it found A Smith had 5 books it stored them. Then when it found J Ton & A Smith had 3 books, it would do the split and then change A Smith to be just 3 books.

Author & author_sort are giving me the same collections now when split is used. Thanks Meme!

ElizabethN is offline