Quote:
Originally Posted by ownedbycats
A small suggestion: I have an Action Chain that uses a template selectively adds the readinggoal:yyyy tag to books, then opens Edit Reading Goal to trigger autoadd.
Would there be much general use for an action that just runs the autoadd then displays a 'x books added' dialog? (Ideally, it would be silent if 0 books added.) This would be helpful for the chains.
edit: Having an option to only have this action trigger autoadd would also fix it being slow to open statistics/edit goal, which is something I've noticed.
|
I'll see what I can do. I really don't want to create another menu action.
As for being slow, I noticed this with your database. My database (with a maximum of 139 books in a year) is very fast to load. It takes only 0,1s to load the 'Edit reading goal' dialog in my laptop (5 years old). It feels almost instantaneous. With your database, it took 2.5s. I see you have around 685 book entries in a year, with a lot of reading records.
Because I noticed this, I was talking to Kovid to get some tips about using SQLite (instead of JSON), as calibre does. It would be faster. The problem is I know nothing about SQLite.
But... I also knew nothing about python when I decided to create my first plugin. I only knew some HTML/CSS back then. So, maybe I can learn how to do it. I'll give it a try when I have some time.
In the meantime, you could modify your chain. You don't need to open the 'Edit reading goal' dialog every time you run the chain. Just set the tag and leave it. The next time you interact with the plugin, it will update automatically. It makes no difference for you.