View Single Post
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