![]() |
#1 |
Member
![]() Posts: 20
Karma: 10
Join Date: Jul 2022
Location: Россия
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 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,361
Karma: 18727666
Join Date: Oct 2018
Location: Canada
Device: Kobo Aura HD (retired), Kobo Libra H2O
|
Quote:
It shouldn't be too difficult to have it increment a 'times read' integer column. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() Posts: 20
Karma: 10
Join Date: Jul 2022
Location: Россия
Device: xiaomi
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,361
Karma: 18727666
Join Date: Oct 2018
Location: Canada
Device: Kobo Aura HD (retired), Kobo Libra H2O
|
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 |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Feb 2019
Device: iPad Pro, Kobo Libra 2
|
May I ask what the refresh view is for?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 20
Karma: 10
Join Date: Jul 2022
Location: Россия
Device: xiaomi
|
|
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,361
Karma: 18727666
Join Date: Oct 2018
Location: Canada
Device: Kobo Aura HD (retired), Kobo Libra H2O
|
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 | |
Member
![]() Posts: 20
Karma: 10
Join Date: Jul 2022
Location: Россия
Device: xiaomi
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Feb 2019
Device: iPad Pro, Kobo Libra 2
|
Quote:
![]() What kind of re-sort is this code doing? |
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,361
Karma: 18727666
Join Date: Oct 2018
Location: Canada
Device: Kobo Aura HD (retired), Kobo Libra H2O
|
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 |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Feb 2019
Device: iPad Pro, Kobo Libra 2
|
Thx, I will have a look.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |