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 11-02-2024, 07:47 PM   #646
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,584
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
They already are user-definable. I was only suggesting #B4B4FF as a default.

Click image for larger version

Name:	2024-11-02 19_48_26-Options.png
Views:	41
Size:	21.3 KB
ID:	211809

Last edited by ownedbycats; 11-03-2024 at 08:16 PM.
ownedbycats is online now   Reply With Quote
Old 11-04-2024, 03:49 AM   #647
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,584
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Possible bug: I think the change added in 1.6.7 (when deleting the last record, create a new updated one immediately, instead of waiting for the next interaction) got regressed. My steps to replicate:

1. Have a book with no read-date and a progress of 0.
2. Add a date to the last-read column and then open Edit Reading Goal.
3. Delete the empty-date 0% record.

Upon pressing apply, a new dated one should appear but it didn't until I closed and re-opened the dialog.

I found this bug after I had the 0% entries for my two most recently-started books go missing. The first time I thought it was some user error but then it happened again.

Last edited by ownedbycats; 11-04-2024 at 03:58 AM.
ownedbycats is online now   Reply With Quote
Old 11-04-2024, 09:32 AM   #648
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,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
. I'll fix it.
thiago.eec is offline   Reply With Quote
Old 11-04-2024, 10:11 AM   #649
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,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Version 1.7.6 - 04 Nov 2024

- Fix a regression introduced in the last release that broke records management, preventing it to create a new updated record immediately, when the last record is deleted
thiago.eec is offline   Reply With Quote
Old 11-04-2024, 10:36 AM   #650
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,584
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
thank you!
ownedbycats is online now   Reply With Quote
Old 11-06-2024, 12:36 AM   #651
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,584
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: What happens to 'pages' on existing entries if I change the page-count on a book? Had to recount the pages because I noticed my Count Pages settings were messed up.

EDIT: It seems the main book record gets changed (at least for the current year - updating previous years didn't seem to work) but the progress subrecords don't change.

So there's a few oddities such as 200 pages/day on a book that'd gotten recounted to 180 pages, but just a minor annoyance - I can always fix it via JSON if it starts bothers me too much.

Last edited by ownedbycats; 11-06-2024 at 03:33 AM.
ownedbycats is online now   Reply With Quote
Old 11-06-2024, 09:02 AM   #652
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,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Back when the database was designed, some choices were made:
  • The current year would be constantly updated to reflect the current status of your books.
  • Past years (and abandoned books) are not updated, since this would slow down the plugin over the years, having more and more books to sync; not to mention rereadings, where the current date would not match past years.
  • Read pages are stored as integers, not as a percentage of the total.

So, changing the page count only affects the main entry in the current year. Records are not updated because they reflect a moment in the past. The read pages in the current years' records could be update if they were saved as a percentage, but that's not the case (and changing it at this point would be too much work for litle gain, since past years are not updated anyway).
thiago.eec is offline   Reply With Quote
Old 11-06-2024, 02:47 PM   #653
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,584
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yeah, that makes sense. Considering the nature of eBooks, the 'pages' really only matter for my paper books anyways.

Last edited by ownedbycats; 11-06-2024 at 02:52 PM.
ownedbycats is online now   Reply With Quote
Old 11-12-2024, 04:05 PM   #654
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,584
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Out of curiosity, I decided to decide whether it was possible to retroactively create a challenge for a previous year.

My steps;

1. Take a backup of the JSON.

2. In challenges_dict, duplicate this year's "Books Purchased in 2024" challenge. I then edited the name, timestamps, and reset count and progress:

Code:
        "Books Purchased in 2023": {
          "count": 0,
          "end": {
            "__class__": "datetime.datetime",
            "__value__": "2023-12-31T04:00:00+00:00"
          },
          "progress": 0,
          "start": {
            "__class__": "datetime.datetime",
            "__value__": "2023-01-01T04:00:00+00:00"
          }
        },
3. Check the "custom challenges" dialog to make sure the newly-created challenge appeared.

4. Go to a book from 2023's goal, and edited it:

Code:
      "challenges": [
        "Annual",
        "Books Purchased in 2023"
      ],
However, here is where I got stuck. I expected the 'count' and 'progress' to automatically update itself; it didn't, so I edited them to 1 and 100. When I next opened Edit Goal, it reset both back to 0 and the challenge appeared for the current year (with no books):

Click image for larger version

Name:	2024-11-12 16_02_20-Edit reading goal.png
Views:	22
Size:	17.8 KB
ID:	211978

I've just reverted to my backup, but I'm curious whether I missed something here that could've made it work.

Last edited by ownedbycats; 11-12-2024 at 04:07 PM.
ownedbycats is online now   Reply With Quote
Old 11-12-2024, 04:50 PM   #655
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,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by ownedbycats View Post
2. In challenges_dict, duplicate this year's "Books Purchased in 2024" challenge. I then edited the name, timestamps, and reset count and progress:
The new challenge must be added to 2023's 'Summary', not 2024's.

P.S.: You will be able to see the challenge and it's books selecting it under 2023, but the 'Custom challenges' dialog only shows the current year info.
thiago.eec is offline   Reply With Quote
Old 11-12-2024, 06:40 PM   #656
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,584
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Ah, a silly mistake there. I got it working now. Perhaps for the future, the option to switch years in the Challenges dialog?

EDIT: I also noticed that the count and progress in challenges_dict need to be updated manually - I half-expected that though.

ANOTHER EDIT: This is making me become very good at editing JSONs without accidentally blanking the files.

Last edited by ownedbycats; 11-12-2024 at 08:08 PM.
ownedbycats is online now   Reply With Quote
Old 11-12-2024, 08:41 PM   #657
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,584
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
New question: On the years that were added retroactively, the challenges_dict is empty (no annual goal, just "challenges_dict": {}. However, I found that I had to add both an "Annual" and "2022 purchases" in order to get the latter to appear in Edit Goal.

Why does this happen? Is is offset by one to keep Annual from appearing in the dropdown?
ownedbycats is online now   Reply With Quote
Old 11-12-2024, 09:34 PM   #658
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,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by ownedbycats View Post
Perhaps for the future, the option to switch years in the Challenges dialog?
I'll look into it.

Quote:
Originally Posted by ownedbycats View Post
EDIT: I also noticed that the count and progress in challenges_dict need to be updated manually - I half-expected that though.
Past years are not updated, remember?

Quote:
Originally Posted by ownedbycats View Post
New question: On the years that were added retroactively, the challenges_dict is empty (no annual goal, just "challenges_dict": {}. However, I found that I had to add both an "Annual" and "2022 purchases" in order to get the latter to appear in Edit Goal.

Why does this happen? Is is offset by one to keep Annual from appearing in the dropdown?
1) You can add challenges only for the current year, so anything before 2023 will have a blank 'challenges_dict'.

2) When Challenges were added to the plugin, a one time update was performed to add the 'challenges_dict' key to past years, but they were left empty. This way we can have a general code for challenges.

3) From there on, every year has an 'Annual' challenge that includes all the books, plus the others created by the user. Every book added to the current year goal is also automatically added to the the 'Annual' challenge. So, the plugin expects this. This is why you have to add to 'Annual' too.
thiago.eec is offline   Reply With Quote
Old 11-13-2024, 05:32 PM   #659
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,584
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yeah, I need to remember that. Just to keep track: when updating existing book record in a previous year using 'add to goal', does it touch anything other than Genres?

For what it matters, I did manage to get the "books purchased in..." challenges put together for 2020 - 2023. Somewhat thankfully, anything earlier than that I wasn't tracking the read dates.

Last edited by ownedbycats; 11-13-2024 at 07:07 PM.
ownedbycats is online now   Reply With Quote
Old 11-16-2024, 08:03 AM   #660
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,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by ownedbycats View Post
Just to keep track: when updating existing book record in a previous year using 'add to goal', does it touch anything other than Genres?
Yes. If you use 'Add to goal' for a book that is already present in a previous year, the book will be fully updated (except for reading records, which are immutable).
thiago.eec is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:44 AM.


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