Thanks for the quick reply!
Quote:
Originally Posted by davidfor
I can't say I have need for this, but, I'll probably try it and see how "bad" some of my books are  And of course, I can see someone using it to select the book to read.
|
This plugin is not for everyone! I have a rather eclectic taste and read a wide variety of books and can tolerate a lot. I will use it some, but I have friends who will use it a lot. And since the bad word list is customizable, you can use it as you see fit.
Quote:
Originally Posted by davidfor
I can think of a few ways:
- Calculate the md5/crc or whatever for the files and only replace if it hasn't changed. Or prompt the user to decide.
- Use two files. One is the defaults that is always replaced. The other is the users file. The decision then is whether the use file is a complete replacement, or just extra words for that user.
- Don't replace the file, but have a way to download it from somewhere with a notification when it has changed.
|
Good ideas - Kovid gave the answer I was looking for - put the data in a json file in the config directory - this directory is not overwritten during plugin updates. May still have to use your ideas to determine if the data has changed and give the user a "revert" choice.
Quote:
Originally Posted by davidfor
As you are running this within calibre against a book in the library, you can do either of these easily. Storing the data in a custom column is easy and is done in a lot of plugins. Both of my plugins do it, plus the Count Pages (which is where I cribbed the code from), Reading List, Goodreads Sync and others. And look at Kovid's post in https://www.mobileread.com/forums/sho...d.php?t=249522.
|
Due to the potentially "large" size of this data, storing it in the db could be unnecessarily cluttering it, especially since it will seldom be used. See my response to Kovid. I will look at the examples you provided since I may still need them - thanks.