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 07-28-2024, 12:27 AM   #481
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,108
Karma: 62844063
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Also, just for futureproofing: When 2025-01-01 rolls around, what will happen to any migrated unreads that have a 2024 #lastread? Will they also error?

For reference, I'm adding the current datetime to #lastread before adding it to the goal. for sorting purposes, mostly.

Last edited by ownedbycats; 07-28-2024 at 12:35 AM.
ownedbycats is online now   Reply With Quote
Old 07-28-2024, 09:02 AM   #482
thiago.eec
Guru
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: 965
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by ownedbycats View Post
Also, just for futureproofing: When 2025-01-01 rolls around, what will happen to any migrated unreads that have a 2024 #lastread? Will they also error?
Let's break it down:

1) 2024-01-01 works just fine here, so 2025-01-01 will work too. Like I said, maybe the problem is how the date was set (via Action Chains). When you set a datetime via python, you can choose to use a naive datetime or a timezone aware. My guess is that Action Chains uses a naive datetime object, but calibre adds the offset, putting it in the wrong year.

2) If you use the RG auto migrate feature, the books in your 'want to read' and 'reading' shelves will be moved to your 2025 goal in 2025-01-01. But you'll still need to change your #lastread date to 2025, since the plugin never touches your calibre library.
thiago.eec is offline   Reply With Quote
Old 08-06-2024, 10:01 AM   #483
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 179
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
I'm currently testing the plugin and have noticed that the genre column keeps getting forgotten. I can select "tags" as the genre column in the settings, but the next time I open the settings it has disappeared again. Have I perhaps missed something?
beedaddy is offline   Reply With Quote
Old 08-06-2024, 10:24 AM   #484
thiago.eec
Guru
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: 965
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by beedaddy View Post
I'm currently testing the plugin and have noticed that the genre column keeps getting forgotten. I can select "tags" as the genre column in the settings, but the next time I open the settings it has disappeared again. Have I perhaps missed something?
That's a bug. Thanks for reporting it. I'll investigate.
thiago.eec is offline   Reply With Quote
Old 08-06-2024, 11:01 AM   #485
thiago.eec
Guru
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: 965
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Version 1.6.0 - 06 Aug 2024

- Bug fix: avoid the genre column being cleared when using a standard field (tags)
thiago.eec is offline   Reply With Quote
Old 08-06-2024, 01:20 PM   #486
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 179
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
Thanks a lot. I can confirm that the problem has been fixed.
beedaddy is offline   Reply With Quote
Old 08-11-2024, 05:12 PM   #487
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,108
Karma: 62844063
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Enhancement, if feasible: An option to further group books in Edit Reading Goal per month.
ownedbycats is online now   Reply With Quote
Old 08-12-2024, 10:11 AM   #488
thiago.eec
Guru
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: 965
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
We would need another column just for that, taking space of other columns. You can already sort it by date, so I don't think it is worth to compromise the current layout.
thiago.eec is offline   Reply With Quote
Old Today, 05:29 AM   #489
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,108
Karma: 62844063
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Here's an odd behaviour I was able to replicate:

1. Have a goal book with a null date and a progress of 0.
2. Change date to the current date. This now results in two entries in the reading goal.

Click image for larger version

Name:	2024-08-15 06_28_14-Edit reading goal.png
Views:	7
Size:	2.2 KB
ID:	210194

3. Then update progress. Unless the undated 0% entry is deleted, the dated 0% entry disappears.

Click image for larger version

Name:	2024-08-15 06_28_37-Edit reading goal.png
Views:	6
Size:	2.7 KB
ID:	210195

Is this intended?
ownedbycats is online now   Reply With Quote
Old Today, 06:35 AM   #490
thiago.eec
Guru
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: 965
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
1) When you add a book to your goal, the current date/progress will be registered as you your first record

2) A new record is created only when you change the progress. If you check your json, at this point, you will see this:
Code:
"records": {
        "0": {
          "date": null,
          "read_pages": 0,
          "status": 0
        }
      },
The main entry is not really a record. It is constantly updated, reflecting the information in your calibre library. If you change any of the metadata, the Edit Reading Goal dialog will be updated too. So, you'll see the new date, but no new record was created.

3) Here you updated the progress, hence got a new record. Now you json looks similar to this:
Code:
"records": {
        "0": {
          "date": null,
          "read_pages": 0,
          "status": 0
        },
        "1": {
          "date": {
            "__class__": "datetime.datetime",
            "__value__": "2024-08-15T10:23:50.830000+00:00"
          },
          "read_pages": 3,
          "status": 1
        }
      },

P.S.:
Quote:
Originally Posted by ownedbycats View Post
Unless the undated 0% entry is deleted, the dated 0% entry disappears.
When delete your only record, then the plugin creates a new record based on you current data, because there must be at least one record all the time.
thiago.eec is offline   Reply With Quote
Old Today, 02:35 PM   #491
sandrilea
Junior Member
sandrilea began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2024
Location: Germany
Device: Pocketbook Touch Lux 3
Thank you for this plugin. It's really awesome! I just found it about two weeks ago and want to keep reading so I can enter more data .

If I go to the Genre view in edit reading goal and click on the date column in order to sort by date I get the following error:

Code:
calibre, version 7.16.0
FEHLER: Unbehandelter Ausnahmefehler: <b>TypeError</b>:'&lt;' not supported between instances of 'QDateTime' and 'NoneType'

calibre 7.16  embedded-python: True
Linux-5.15.0-116-generic-x86_64-with-glibc2.38 Linux ('64bit', 'ELF')
('Linux', '5.15.0-116-generic', '#126-Ubuntu SMP Mon Jul 1 10:14:24 UTC 2024')
Python 3.11.5
Interface language: de
EXE path: /app/lib/calibre/bin/calibre
Traceback (most recent call last):
  File "calibre_plugins.Reading_Goal.main", line 3337, in __lt__
    return first < second
           ^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'QDateTime' and 'NoneType'
In shelf view there is no problem sorting by date.

Thank you for your great work!
sandrilea is offline   Reply With Quote
Old Today, 04:01 PM   #492
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,108
Karma: 62844063
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by thiago.eec View Post
1) When you add a book to your goal, the current date/progress will be registered as you your first record

2) A new record is created only when you change the progress. If you check your json, at this point, you will see this:
Code:
"records": {
        "0": {
          "date": null,
          "read_pages": 0,
          "status": 0
        }
      },
The main entry is not really a record. It is constantly updated, reflecting the information in your calibre library. If you change any of the metadata, the Edit Reading Goal dialog will be updated too. So, you'll see the new date, but no new record was created.

3) Here you updated the progress, hence got a new record. Now you json looks similar to this:
Code:
"records": {
        "0": {
          "date": null,
          "read_pages": 0,
          "status": 0
        },
        "1": {
          "date": {
            "__class__": "datetime.datetime",
            "__value__": "2024-08-15T10:23:50.830000+00:00"
          },
          "read_pages": 3,
          "status": 1
        }
      },

P.S.:


When delete your only record, then the plugin creates a new record based on you current data, because there must be at least one record all the time.
Ah, that makes sense.
ownedbycats is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Reading List kiwidude Plugins 1350 Today 11:03 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 06:23 PM.


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