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 06-03-2025, 10:06 AM   #871
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,212
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
Likely DST error:

Code:
        "8": {
          "date": {
            "__class__": "datetime.datetime",
            "__value__": "2024-12-29T03:27:12+00:00"
          },
          "read_pages": 570,
          "status": 100.0
        }
I finished this book at 12:27 a.m. on December 29th. In Reading Goal, this displays as 11:27 pm on December 28th.
Are you sure you finished 12:27 a.m.? That's odd. Your JSON says 03:27 a.m on Dec 29th, wich converts to 11:27 p.m. on Dec 28th if you have a -4h offset.
thiago.eec is offline   Reply With Quote
Old 06-03-2025, 10:47 AM   #872
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: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by thiago.eec View Post
Are you sure you finished 12:27 a.m.? That's odd. Your JSON says 03:27 a.m on Dec 29th, wich converts to 11:27 p.m. on Dec 28th if you have a -4h offset.
Calibre says 12:27 a.m.
ownedbycats is offline   Reply With Quote
Old 07-12-2025, 04:42 PM   #873
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: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Previously, I just ignored in-progress fanfics and just added them whenever the author added them. Now I want to try adding them to my goal, under certain circumtances.

Will the constantly increasing pagecount cause any issues? Particularly as percent-read might go up and down as more chapters are added.

Last edited by ownedbycats; 07-12-2025 at 06:58 PM.
ownedbycats is offline   Reply With Quote
Old 07-12-2025, 04:57 PM   #874
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: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
This error happens when I try to update any book from 2023. No other years.

Code:
calibre, version 8.6.0
ERROR: Unhandled exception: <b>KeyError</b>:'last_year_pages'

calibre 8.6  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.12
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: ...
Traceback (most recent call last):
  File "calibre_plugins.Reading_Goal.main", line 256, in manage_reading_goal
  File "calibre_plugins.Reading_Goal.main", line 628, in add_to_goal
  File "calibre_plugins.Reading_Goal.main", line 1149, in update_summary
KeyError: 'last_year_pages'
I disabled migrate, no effect.


Random one, maybe something wrong with 2023 entries.

Spoiler:
Code:
    "7828": {
      "authors": [
        "almne"
      ],
      "challenges": [
        "Annual"
      ],
      "date": {
        "__class__": "datetime.datetime",
        "__value__": "2023-02-24T09:57:21+00:00"
      },
      "genre": [
        "Fanfiction.Other"
      ],
      "last_year_pages": 0,
      "page_count": 251,
      "read_pages": 251,
      "records": {
        "0": {
          "date": {
            "__class__": "datetime.datetime",
            "__value__": "2023-02-24T09:57:21+00:00"
          },
          "read_pages": 251,
          "status": 100
        }
      },
      "reread_count": 0,
      "series": null,
      "shelf": "Read",
      "status": 100,
      "title": "A Downed Dragon is a Dead Dragon",
      "title_sort": "Downed Dragon is a Dead Dragon, A"
    },

Last edited by ownedbycats; 07-12-2025 at 05:13 PM.
ownedbycats is offline   Reply With Quote
Old 07-12-2025, 09:25 PM   #875
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,212
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
Previously, I just ignored in-progress fanfics and just added them whenever the author added them. Now I want to try adding them to my goal, under certain circumtances.

Will the constantly increasing pagecount cause any issues? Particularly as percent-read might go up and down as more chapters are added.
The records are not updated after they are created, so if the page count increases with time, those records would be off. But I don't think it would cause any other problems.

Quote:
Originally Posted by ownedbycats View Post
This error happens when I try to update any book from 2023. No other years.

Code:
calibre, version 8.6.0
ERROR: Unhandled exception: <b>KeyError</b>:'last_year_pages'
I disabled migrate, no effect.


Random one, maybe something wrong with 2023 entries.
You have at least one book entry without the 'last_year_pages' key. I really don't know how it could happen, maybe when I was still changing the database structure. If you could find this book, then just add the missing key with a value of 0.

I suggest using regex to find the 'page_count' key just after the 'genre' key, since the 'last_year_pages' should be between then:
Code:
"genre": "(.*?)",
      "page_count"
thiago.eec is offline   Reply With Quote
Old 07-12-2025, 10:14 PM   #876
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: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Maybe accidentally from my JSON editing.

EDIT: It was.

Last edited by ownedbycats; 07-12-2025 at 10:45 PM.
ownedbycats is offline   Reply With Quote
Old 07-20-2025, 12:45 PM   #877
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: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Click image for larger version

Name:	2025-07-20 13_44_17-Custom challenges.png
Views:	11
Size:	9.4 KB
ID:	216979

Suggestion: A button to mark books in a challenge. Perhaps use text labels to appear as different colours to separate read and unfinished.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Reading List kiwidude Plugins 1423 06-22-2025 01:03 PM
[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:16 PM.


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