View Single Post
Old 08-04-2024, 11:27 PM   #14
iandol
Enthusiast
iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.
 
iandol's Avatar
 
Posts: 40
Karma: 216612
Join Date: Feb 2022
Device: Kobo Nia
Quote:
Originally Posted by birdbear View Post
Hey all, thanks to the hint by hius07, I was able to create a User Patch to accomplish what I was asking about in this thread.
Thank you!

Am I right in thinking that this will overwrite collections.lua so if you have any collections apart from favourites, these will be lost. In function add_ebooks_to_collection on line 34-52?

If we want to preserve any other collections then only the favorites section should be changed, what is the best way to do that? From other languages I know it would be to deserialise collections.lua to a variable then manipulate it then serialise it back to the file?
iandol is offline   Reply With Quote