Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 09-05-2025, 12:08 PM   #901
Feoras
Member
Feoras began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2023
Device: Kobo Glo
Quote:
Originally Posted by thiago.eec View Post
You're welcome!


Unfortunatly you can't look for an empty value, since leaving it blank means 'any non-empty value' to the plugin (check the tooltip). This worked like that since the auto add was introduced, so I don't think it has anything to do with the new version.


The "auto_add_check" controls changes to the auto add configuration. When you change it, the plugin sets this field to 'true' so it scans the entire library on your next interaction. It should not interfere when you haven't changed your settings.

In any case, please post your data here (config dialog screen capture and the metadata window for a book that should be added) so I can analise what's going on.

It did work in the previous versions. I don't think "auto_add_check" ever set to True except in "config.py" when the column settings are changed.

Yes, I want it to look for any value change (non empty).

Here are the screenshots which worked in the previous version. No matter if I change from undefined to 2.00 and save, and then change it from 2.00 to 3.00 and save, the book is never added. It is added if I set it to 2.00, close calibre, manually set "auto_add_check" to True in the json config and start up calibre again.

Thanks so much for looking into this
Attached Thumbnails
Click image for larger version

Name:	2025-09-05-18_01_16-select.png
Views:	12
Size:	26.4 KB
ID:	217895   Click image for larger version

Name:	2025-09-05-18_01_36-select.png
Views:	10
Size:	28.9 KB
ID:	217896   Click image for larger version

Name:	2025-09-05-18_01_49-select.png
Views:	9
Size:	28.6 KB
ID:	217897  
Feoras is offline   Reply With Quote
Old 09-05-2025, 12:21 PM   #902
Feoras
Member
Feoras began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2023
Device: Kobo Glo
The main settings somehow didn't attach
Attached Thumbnails
Click image for larger version

Name:	2025-09-05-18_01_02-select.png
Views:	11
Size:	37.3 KB
ID:	217898  
Feoras is offline   Reply With Quote
Old 09-05-2025, 12:28 PM   #903
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,243
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Feoras View Post
It did work in the previous versions.
I can only assume you changed something in your plugin's or column's settings. Just tested version 1.9.7 and it works just as I described. I'm attaching it so you can try it yourself.

Quote:
Originally Posted by Feoras View Post
I don't think "auto_add_check" ever set to True except in "config.py" when the column settings are changed.
That's what I said. I guess I wasn't clear.

Quote:
Originally Posted by Feoras View Post
Yes, I want it to look for any value change (non empty).
Now I'm confused. Do you want to check for an empty or non-empty value? Like I said before, there is no way to look for an empty value. On the other hand, if you want to look for a non-empty value, just leave the 'value' field blank. It will just check if the chosen column is set (to any non-empty value).

Quote:
Originally Posted by Feoras View Post
Thanks so much for looking into this
Let's hope we can find the problem here and fix it.

Last edited by thiago.eec; Yesterday at 12:13 PM. Reason: Remove old version.
thiago.eec is offline   Reply With Quote
Old 09-05-2025, 02:03 PM   #904
Feoras
Member
Feoras began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2023
Device: Kobo Glo
Quote:
Originally Posted by thiago.eec View Post
I can only assume you changed something in your plugin's or column's settings. Just tested version 1.9.7 and it works just as I described. I'm attaching it so you can try it yourself.


That's what I said. I guess I wasn't clear.


Now I'm confused. Do you want to check for an empty or non-empty value? Like I said before, there is no way to look for an empty value. On the other hand, if you want to look for a non-empty value, just leave the 'value' field blank. It will just check if the chosen column is set (to any non-empty value).


Let's hope we can find the problem here and fix it.
Yeah it also does not work in your attached 1.9.7 version I am not sure what I changed

What I want: Whenever column #readpercentage is changed to any value, this book should be added to my reading goal. I want to avoid adding the books manually, and they should be automatically added when the #readpercentage changes from undefined to any float value, or from any float value to any other float value. It worked like this before, though I had to recreate some things and maybe those broke it?

This is my Reading_Goal.json:
Quote:
{
"allow_other_years": false,
"auto_add_challenges": "",
"auto_add_check": false,
"auto_add_column": "#readpercentage",
"auto_add_value": "",
"auto_collapse": "",
"autofill": true,
...
as you can see, "auto_add_value" is empty, and the column is set to #readpercentage. This column is of type "floating point numbers" formatted as {:.2f}%

From my understanding, this setting should add a book to the reading goal if #readpercentage is changed to any non-empty value, e.g. 2.00
Feoras is offline   Reply With Quote
Old 09-05-2025, 02:14 PM   #905
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,243
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Feoras View Post
What I want: Whenever column #readpercentage is changed to any value, this book should be added to my reading goal.
Folow this steps:
1) Open the Config dialog and set the auto add column to to none (empty space). Click 'Ok' to confirm and close the dialog.
2) Reopen the Config dialog and set the auto add column to '#readpercentage'. Leave the value field empty. Click 'Ok' to confirm and close the dialog.
3) Click on the plugin icon.

You only have to do this once, to trigger a library scan. All the books with the '#readpercentage' column set to a non-empty value will be automatically added to your current goal.

In the future, everytime you change this column to a non-empty value in a book, it will be added to your goal.
thiago.eec is offline   Reply With Quote
Old 09-05-2025, 02:34 PM   #906
Feoras
Member
Feoras began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2023
Device: Kobo Glo
Quote:
Originally Posted by thiago.eec View Post
Folow this steps:
1) Open the Config dialog and set the auto add column to to none (empty space). Click 'Ok' to confirm and close the dialog.
2) Reopen the Config dialog and set the auto add column to '#readpercentage'. Leave the value field empty. Click 'Ok' to confirm and close the dialog.
3) Click on the plugin icon.

You only have to do this once, to trigger a library scan. All the books with the '#readpercentage' column set to a non-empty value will be automatically added to your current goal.

In the future, everytime you change this column to a non-empty value in a book, it will be added to your goal.
Thanks, this did work that all books with an non-empty value were added.

However, the issue persists that any other books I change now are still not added. Changing the #readpercentage column does not add the book.


I added some prints into the main.py and I think the issue is that the "reading_progress_column" and "auto_add_column" are the same. The if statement in "metadata_changed_event" enters this if statement:
Quote:
if event_data[0] == self.prefs['reading_progress_column']:
self.manage_reading_goal(id_list=map(str, event_data[1]), option='metadata_changed')
and NOT this:
Quote:
elif event_data[0] == self.prefs['auto_add_column']:
self.manage_reading_goal(id_list=map(str, event_data[1]), option='auto_add_goal')
Changing from elif to if to process a column for all settings and it works, the book is now added:
Quote:
if event_data[0] == self.prefs['reading_progress_column']:
self.manage_reading_goal(id_list=map(str, event_data[1]), option='metadata_changed')
if event_data[0] == self.prefs['auto_add_column']:
self.manage_reading_goal(id_list=map(str, event_data[1]), option='auto_add_goal')
if event_data[0] in auto_add_challenges_columns:
self.manage_reading_goal(id_list=map(str, event_data[1]), option='auto_add_challenges')
Feoras is offline   Reply With Quote
Old 09-05-2025, 02:51 PM   #907
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,243
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Feoras View Post
I think the issue is that the "reading_progress_column" and "auto_add_column" are the same
That's it, then. That scenario was not antecipated by me. I'll correct it and release a new version soon. Thanks for your help!
thiago.eec is offline   Reply With Quote
Old 09-05-2025, 03:53 PM   #908
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,243
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Version 1.9.9 - 05 Sep 2025

- Bug fix for the Auto Add feature: it wouldn't work if you also used your read rercentage column as the auto add column.
thiago.eec is offline   Reply With Quote
Old 09-05-2025, 06:49 PM   #909
Feoras
Member
Feoras began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2023
Device: Kobo Glo
It's working now, thanks for integrating the fix so quickly
Feoras is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Reading List kiwidude Plugins 1430 09-03-2025 05:14 AM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
Reading Goal KyBunnies Audiobook Discussions 12 10-25-2017 05:29 PM


All times are GMT -4. The time now is 12:59 PM.


MobileRead.com is a privately owned, operated and funded community.