![]() |
#1 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
|
good think
why not implement such a thing: every time I open a book, the counter accumulates and calculates the frequency of using the book for a certain period of time
|
![]() |
![]() |
![]() |
#2 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
It shouldn't be too difficult to have it increment a 'times read' integer column. |
|
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
1. Go to Preferences > Add your own columns.
2. Create a new Integer column with the lookup name 'timesread'. 3. (Optional) Create a new date column with the lookup name 'lastread.'* 4. Go to Preferences > Plugins > Get New Plugins and install Action Chains. Make sure to add it to the toolbar or context menu. Restart Calibre. 5. Download the attached file and put it somewhere. 6. Go to Action Chains > Add/Modify Chains. 7. Right-click the main part of the window and use 'Import' to add the downloaded zip file. 8. Test that it works. If it does, it'll open the book, increment #timesread by 1, and set #lastread to the current time. 8. Assign it to a keyboard shortcut. Note that this will not work if you open it in other methods (e.g. the 'view' toolbar button). * If you don't want this, make sure to remove the 'Set #lastread to current date' from the chain before running it. Note that I also set it to activate when one book is selected. This prevents accidentally opening the entire library if you hit the keyboard shortcut by mistake. |
![]() |
![]() |
![]() |
#5 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
May I ask what the refresh view is for?
|
![]() |
![]() |
![]() |
#6 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
|
|
![]() |
![]() |
![]() |
#7 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
A custom module. I use it to re-sort books at the end of a chain.
Code:
from calibre_plugins.action_chains.actions.base import ChainAction class RefreshAction(ChainAction): name = 'Refresh View' def run(self, gui, settings, chain_loop): gui.current_view().resort() Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Quote:
![]() What kind of re-sort is this code doing? |
|
![]() |
![]() |
![]() |
#10 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
On the screenshot in post #7, you can see 'Modules' in the lower right corner. You can add it there.
If I recall right, it'll behave as if you did a bulk metadata edit with 'refresh book list' active. |
![]() |
![]() |
![]() |
#11 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Thx, I will have a look.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
good screen, good/custom fonts, just works? | grimborg | Which one should I buy? | 9 | 01-07-2012 04:36 PM |