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 09-17-2023, 08:43 AM   #226
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,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
I see that now. Maybe change the dialog to indicate books are updated?
I'll take a look at that.
thiago.eec is online now   Reply With Quote
Old 09-17-2023, 09:20 AM   #227
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: 11,117
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
How would I get rid of an empty genre? I'm not sure how this happened. I looked in the JSON and found the book it was associated with. I wonder why it didn't appear in Genre.

EDIT: Also, Statistics > By Genre > All doesn't seem to be working.
Attached Thumbnails
Click image for larger version

Name:	2023-09-17 10_19_27-Edit reading goal.png
Views:	76
Size:	14.7 KB
ID:	203809   Click image for larger version

Name:	2023-09-17 10_28_44-Reading goal statistics.png
Views:	78
Size:	14.8 KB
ID:	203810  

Last edited by ownedbycats; 09-17-2023 at 09:33 AM.
ownedbycats is offline   Reply With Quote
Old 09-17-2023, 09:45 AM   #228
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,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
How would I get rid of an empty genre? I'm not sure how this happened. I looked in the JSON and found the book it was associated with. I wonder why it didn't appear in Genre.
Hmmm... that's odd. The plugin parses all the books from that year and create a list of all genres. Then get the most read genres (12, IIRC) and create a graphic.

Please send the JSON, so I can figure out what is happening.

Quote:
Originally Posted by ownedbycats View Post
EDIT: Also, Statistics > By Genre > All doesn't seem to be working.
That's expected behavior. How could it show a genre view for each year? It would need some king of hierarchical graphic.
thiago.eec is online now   Reply With Quote
Old 09-17-2023, 09:50 AM   #229
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
I think @obc means the top 12 genres for all years summary.
That would be really nice
Wiggo is offline   Reply With Quote
Old 09-17-2023, 09:51 AM   #230
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,641
Karma: 7908443
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by thiago.eec View Post
Hi!

You said you can't add books to past years. I can't reproduce it here with last version. Test the new version I'm about to release.

Also, you said can't remove books from past years. This functionality was not touched in recent updates. It works fine here (via 'Edit reading goal' dialog > Select the year > Select the books > Press the 'Remove' button or press 'Del' on the keyboard > Apply).
I use mostly the context menu for the books in the library, and I still get either the "No book was added" message box when adding books to past years or it just fails silently, i.e., it doesn't give any message but the selected book(s) aren't actually added.

As for removing, I can do it in the Edit Reading Goal window -> remove button, however if using the context menu, it gives me the message attached. I've also attached my configs.
Attached Thumbnails
Click image for larger version

Name:	MWSnap 2023-09-17, 10_46_15.png
Views:	89
Size:	6.7 KB
ID:	203813   Click image for larger version

Name:	MWSnap 2023-09-17, 10_34_26.png
Views:	90
Size:	19.2 KB
ID:	203814   Click image for larger version

Name:	MWSnap 2023-09-17, 10_28_34.png
Views:	79
Size:	26.3 KB
ID:	203815   Click image for larger version

Name:	MWSnap 2023-09-17, 10_25_54.png
Views:	83
Size:	17.5 KB
ID:	203816   Click image for larger version

Name:	MWSnap 2023-09-17, 10_25_44.png
Views:	81
Size:	16.9 KB
ID:	203817  
Comfy.n is offline   Reply With Quote
Old 09-17-2023, 09:55 AM   #231
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: 11,117
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by thiago.eec View Post
Hmmm... that's odd. The plugin parses all the books from that year and create a list of all genres. Then get the most read genres (12, IIRC) and create a graphic.

Please send the JSON, so I can figure out what is happening.
Will remove this once confirmed downloaded. Look for book id 6926.

Last edited by ownedbycats; 09-18-2023 at 07:12 PM.
ownedbycats is offline   Reply With Quote
Old 09-17-2023, 09:56 AM   #232
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: 11,117
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Wiggo View Post
I think @obc means the top 12 genres for all years summary.
That would be really nice
Yes, I was expecting something like that.
ownedbycats is offline   Reply With Quote
Old 09-17-2023, 11:37 AM   #233
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,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Wiggo View Post
I think @obc means the top 12 genres for all years summary.
That would be really nice
Got it. I don't remember if there was a problem preventing this, but I'll check if it is possible.

Quote:
Originally Posted by Comfy.n View Post
I use mostly the context menu for the books in the library, and I still get either the "No book was added" message box when adding books to past years or it just fails silently, i.e., it doesn't give any message but the selected book(s) aren't actually added.
The no books added message means just no NEW books. I'll change that message, to be more descriptive. As for failing silently, I would need steps to reproduce. It doesn't happen here with the current version. One of the versions in 1.1.4, 1.1.5 and 1.1.6 may have this problem.

Quote:
Originally Posted by Comfy.n View Post
As for removing, I can do it in the Edit Reading Goal window -> remove button, however if using the context menu, it gives me the message attached. I've also attached my configs.
It's like I said before. The main menu actions (Add/remove to/from reading goal) are meant for the current year. If you hover it, you'll see the description at the status bar. Since the context menu actions are the same as the main menu, the result is the same. To remove from past years, you need to use the remove option from the 'Edit reading goal' dialog.
thiago.eec is online now   Reply With Quote
Old 09-17-2023, 11:57 AM   #234
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,641
Karma: 7908443
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by thiago.eec View Post
The no books added message means just no NEW books. I'll change that message, to be more descriptive. As for failing silently, I would need steps to reproduce. It doesn't happen here with the current version. One of the versions in 1.1.4, 1.1.5 and 1.1.6 may have this problem.
I'm using 1.1.7... While attempting to log the steps in order to reproduce this on a clean slate, I just noticed this: I hit the clear database, got the confirmation message "All existing data will be permanently deleted. Do you want to proceed?", but the Edit Goal Window wouldn't update, as it would still show years 1990 and 2023, with no book records... Then after opening it again after some time, it was actually cleared

I'll do more tests in a bit
Comfy.n is offline   Reply With Quote
Old 09-17-2023, 12:39 PM   #235
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,641
Karma: 7908443
Join Date: Sep 2020
Device: none
This is on a clean slate in v1.1.7, after clearing the database: even 2023 records don't get added.

However if I install v. (1, 1, 0), it works fine
Comfy.n is offline   Reply With Quote
Old 09-17-2023, 02:54 PM   #236
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,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Comfy.n View Post
... as it would still show years 1990 and 2023, with no book records... Then after opening it again after some time, it was actually cleared
Yes, the year menu is retaining the last database years. Although it's harmless, I'll fix it.

Quote:
Originally Posted by Comfy.n View Post
This is on a clean slate in v1.1.7, after clearing the database: even 2023 records don't get added.
It's a bug. Can't add a new book to a clean database when the 'Allow other years' is checked (if you uncheck, then you can add normally). I'm going to investigate this. I think this happened before and I fixed it. Maybe something got mixed here and the fix was lost.

But with an existing database, everything seems to work fine here.
thiago.eec is online now   Reply With Quote
Old 09-18-2023, 09:28 AM   #237
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: 11,117
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Suggestion, if it makes sense: When using the 'add to reading goal' menu option, an option to add a value to a column. I would use the same readinggoal:yyyy in #admintags that I use as the autoadd value.

Unexpected behaviour: If I open Edit Reading Goal, click one of the headers (Want to Read, etc), then Mark Selected Books, I get an empty marked:2023 search. I'd expect either it to mark all the 'want to read' books or to get an error.

Last edited by ownedbycats; 09-18-2023 at 09:47 AM.
ownedbycats is offline   Reply With Quote
Old 09-18-2023, 10:06 AM   #238
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: 11,117
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by thiago.eec View Post
Version 1.1.7 - 17 Sep 2023

- Fix a remaining timezone issue for book records
This error happens trying to open records if any were added in this version (older ones are still okay)

Code:
calibre, version 6.26.0
ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'astimezone'

...
Traceback (most recent call last):
  File "calibre_plugins.Reading_Goal.main", line 2354, in handler
  File "calibre_plugins.Reading_Goal.main", line 2491, in show_records
AttributeError: 'NoneType' object has no attribute 'astimezone'
ownedbycats is offline   Reply With Quote
Old 09-18-2023, 11:10 AM   #239
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,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
I see that now. Maybe change the dialog to indicate books are updated?
Added an extra message if some books were just updated.

Quote:
Originally Posted by ownedbycats View Post
How would I get rid of an empty genre? I'm not sure how this happened. I looked in the JSON and found the book it was associated with. I wonder why it didn't appear in Genre.
The problem was that you have two identical 'tag leafs': 'Mystery' and 'Fiction.Mystery'. Also, you have the same* book listed twice (one in each tag). *Same title/author, but different page count
This is fixed now.

Quote:
Originally Posted by ownedbycats View Post
EDIT: Also, Statistics > By Genre > All doesn't seem to be working.
Fixed. It now shows the most read genres in all the years.

Quote:
Originally Posted by Comfy.n View Post
I'm using 1.1.7... While attempting to log the steps in order to reproduce this on a clean slate, I just noticed this: I hit the clear database, got the confirmation message "All existing data will be permanently deleted. Do you want to proceed?", but the Edit Goal Window wouldn't update, as it would still show years 1990 and 2023, with no book records... Then after opening it again after some time, it was actually cleared
Fixed.


Quote:
Originally Posted by Comfy.n View Post
This is on a clean slate in v1.1.7, after clearing the database: even 2023 records don't get added.
Fixed. As for your other problems, I will need the exact steps to reproduce, since I could not reproduce it here.

Quote:
Originally Posted by ownedbycats View Post
Suggestion, if it makes sense: When using the 'add to reading goal' menu option, an option to add a value to a column. I would use the same readinggoal:yyyy in #admintags that I use as the autoadd value.
I'll see what I can do.

Quote:
Originally Posted by ownedbycats View Post
Unexpected behaviour: If I open Edit Reading Goal, click one of the headers (Want to Read, etc), then Mark Selected Books, I get an empty marked:2023 search. I'd expect either it to mark all the 'want to read' books or to get an error.
Fixed. I was not sure how to proceed here: consider it an empty selection (like it happens for the other buttons), or let it mark all the books in that shelf. I ended up choosing the second approach. Although it may be a little inconsistent, this is just 'marking', so no change to the database.

Quote:
Originally Posted by ownedbycats View Post
This error happens trying to open records if any were added in this version (older ones are still okay)
Code:
'NoneType' object has no attribute 'astimezone'
I could not reproduce it here:
1) Add a new book to the current year (or other year)
2) Open the 'Edit reading goal' dialog
3) Click on the added book
4) Click on the 'Show records' button
5) Records are shown
6) Deleting records also works

Test the new version that will be released in a few moments and tell me if it still happens. If so, please give me the complete steps to reproduce.

Last edited by thiago.eec; 09-18-2023 at 11:37 AM.
thiago.eec is online now   Reply With Quote
Old 09-18-2023, 11:26 AM   #240
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,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Version 1.1.8 - 18 Sep 2023

- Add to reading goal: Added an extra message if the books are already in the database, and they were just updated
- Add a genre view for the 'All' years option
- Fix for repeated genres in different levels (e.g.: 'Mystery' and 'Fiction.Mystery') no being correctly displayed
- Fix for adding books to an empty database when the 'Allow other years' option is checked (this was fixed before, but came back)
- Fix for 'Mark selected books' when clicking on the shelves' names. Now it marks all the books in that shelf.
thiago.eec is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Reading List kiwidude Plugins 1430 Today 05:14 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 08:45 AM.


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