07-28-2024, 01:27 AM | #481 |
Custom User Title
Posts: 9,563
Karma: 64960981
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 01:35 AM. |
07-28-2024, 10:02 AM | #482 | |
Wizard
Posts: 1,089
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
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. |
|
08-06-2024, 11:01 AM | #483 |
Groupie
Posts: 183
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?
|
08-06-2024, 11:24 AM | #484 |
Wizard
Posts: 1,089
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
That's a bug. Thanks for reporting it. I'll investigate.
|
08-06-2024, 12:01 PM | #485 |
Wizard
Posts: 1,089
Karma: 1221485
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) |
08-06-2024, 02:20 PM | #486 |
Groupie
Posts: 183
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.
|
08-11-2024, 06:12 PM | #487 |
Custom User Title
Posts: 9,563
Karma: 64960981
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.
|
08-12-2024, 11:11 AM | #488 |
Wizard
Posts: 1,089
Karma: 1221485
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.
|
08-15-2024, 06:29 AM | #489 |
Custom User Title
Posts: 9,563
Karma: 64960981
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. 3. Then update progress. Unless the undated 0% entry is deleted, the dated 0% entry disappears. Is this intended? |
08-15-2024, 07:35 AM | #490 |
Wizard
Posts: 1,089
Karma: 1221485
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 } }, 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. |
08-15-2024, 03:35 PM | #491 |
Junior Member
Posts: 7
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>:'<' 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' Thank you for your great work! |
08-15-2024, 05:01 PM | #492 | |
Custom User Title
Posts: 9,563
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
08-15-2024, 09:09 PM | #493 | ||
Wizard
Posts: 1,089
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Quote:
EDIT: Found the bug. It was caused by empty genres. Last edited by thiago.eec; 08-16-2024 at 09:51 AM. |
||
08-16-2024, 10:00 AM | #494 |
Wizard
Posts: 1,089
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Version 1.6.1 - 16 Aug 2024
- Bug fix: sorting by date on the Genre View could cause an error when there were empty genres |
08-16-2024, 04:55 PM | #495 |
Junior Member
Posts: 7
Karma: 10
Join Date: Aug 2024
Location: Germany
Device: Pocketbook Touch Lux 3
|
You are amazing, thank you! It works.
I had several books without genre. I remember, there were some books under "no genre". But I changed that before the error occurred. I marked all books in edit reading goal because I wanted to check the genre and stumbled over an error. I use several genres and some of them have a child genre (Fantasy, Fantasy.Urban Fantasy). If in genre view I mark books and a child genre and then click "mark selected books" everything works fine. If I mark the main genre and some books and then click "mark selected books" I get an error: Code:
calibre, version 7.16.0 FEHLER: Unbehandelter Ausnahmefehler: <b>ValueError</b>:invalid literal for int() with base 10: '' 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 2587, in handler self.mark_books() File "calibre_plugins.Reading_Goal.main", line 2761, in mark_books marked_ids.append(int(item.child(idx).text(1))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: '' |
|
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 |