Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 09-10-2023, 11:30 AM   #166
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: 410
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Quote:
Originally Posted by thiago.eec View Post
Yes, you will need a reading progress column. I could not eliminate this. The plugin was designed to use this column from the beginning, so it would be really hard to change this behavior.
Sorry, I missed your post.

Can the reading progress column be built from other columns?
If #read=yes then #rp=100%?

If so, would you have the code for me, please?
Wiggo is offline   Reply With Quote
Old 09-10-2023, 11:40 AM   #167
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: 8,852
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Wiggo View Post
Sorry, I missed your post.

Can the reading progress column be built from other columns?
If #read=yes then #rp=100%?

If so, would you have the code for me, please?
Try this. It should return '100' for true, and '0' otherwise.

Code:
program:

	switch_if(
		check_yes_no($#read, 0, 0, 1), '100',
		'0'
	)
I don't know if the plugin can detect changes to composite columns, though.

Last edited by ownedbycats; 09-10-2023 at 12:54 PM.
ownedbycats is offline   Reply With Quote
Advert
Old 09-10-2023, 12:02 PM   #168
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: 946
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by Wiggo View Post
Sorry, I missed your post.

Can the reading progress column be built from other columns?
If #read=yes then #rp=100%?

If so, would you have the code for me, please?
That I can do. I'll change the code to accept composite columns.

Quote:
Originally Posted by ownedbycats View Post
I don't know if the plugin can detect changes to composite columns, though.
Not right now, but that is easy to change.
thiago.eec is offline   Reply With Quote
Old 09-10-2023, 01:43 PM   #169
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: 410
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
thanks @obc and @thiago
Wiggo is offline   Reply With Quote
Old 09-10-2023, 02:15 PM   #170
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: 946
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by ownedbycats View Post
Try this. It should return '100' for true, and '0' otherwise.
I tested here and I had to change the field part:
Code:
program:
	switch_if(
		check_yes_no('#read', 0, 0, 1), '100',
		'0'
	)
thiago.eec is offline   Reply With Quote
Advert
Old 09-10-2023, 02:23 PM   #171
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: 946
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Version 1.1.2 - 10 Sep 2023

- Accept composite columns for reading progress
thiago.eec is offline   Reply With Quote
Old 09-10-2023, 03:00 PM   #172
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: 8,852
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by thiago.eec View Post
I tested here and I had to change the field part:
Code:
program:
	switch_if(
		check_yes_no('#read', 0, 0, 1), '100',
		'0'
	)
Oops, I didn't have any boolean columns to test with.
ownedbycats is offline   Reply With Quote
Old 09-10-2023, 07:13 PM   #173
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 734
Karma: 228142
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by thiago.eec View Post
That looks like a glitch on linux webview. Unfortunately I don't have access to a linux machine to test this. Did you teste it on another linux distro?
Also, you could try running in debug mode and post the log, to see if we get any more info.
Something strange is happening...
I took advantage of the last two updates and look, the bars do not appear in the option by month, but they do appear in the option by gender genre.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	46
Size:	28.2 KB
ID:	203693  

Last edited by BetterRed; 09-10-2023 at 07:45 PM. Reason: typo fixed ;)
dunhill is offline   Reply With Quote
Old 09-10-2023, 07:34 PM   #174
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: 946
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by dunhill View Post
Something strange is happening...
I took advantage of the last two updates and look, the bars do not appear in the option by month, but they do appear in the option by gender.
Could you send me a debug log when trying to first open the Statistics dialog?
thiago.eec is offline   Reply With Quote
Old 09-11-2023, 11:25 AM   #175
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: 410
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
hmmm...am I doing something wrong?

Neither with my composite column nor with a newly created one from the options do books appear in the reading goals.
select book in book list --> add to reading goal --> four digits year --> edit reading goal = empty, but year 2023 is visible
If I add a book read in 2022 reading goal is still empty but 2022 is visible too.

Additionally if I try to add a custom challenge I get this error

Spoiler:
Quote:
calibre, version 6.26.0
FEHLER: Unbehandelter Ausnahmefehler: <b>KeyError</b>:'summary'

calibre 6.26 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: de
Successfully initialized third party plugins: DeDRM (10, 0, 3) && Action Chains (1, 18, 12) && Annotations (1, 17, 13) && Count Pages (1, 13, 1) && DNB_DE (3, 2, 3) && EpubMerge (2, 16, 0) && Extract ISBN (1, 6, 0) && Extract People Other Metadata (1, 0, 0) && Fantastic Fiction (1, 6, 4) && Favourites Menu (1, 3, 0) && Find Duplicates (1, 10, 8) && Goodreads (1, 7, 9) && Goodreads Sync (1, 16, 3) && Import List (1, 9, 1) && Job Spy (1, 0, 239) && KOReader Sync (0, 5, 2) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Utilities (2, 16, 10) && KoboTouchExtended (3, 6, 5) && Last Modified (0, 8, 4) && LibraryThing Match (0, 2, 1) && Manage Series (1, 5, 1) && Modify ePub (1, 8, 1) && Quality Check (1, 13, 6) && Quick Preferences (1, 7, 0) && Reading Goal (1, 1, 2) && Reading List (1, 15, 1) && ScrambleEbook (0, 6, 0) && Search The Internet (1, 10, 1) && TextDiff (1, 2, 1) && View Manager (1, 10, 2) && Walk Search History (1, 5, 3)
Traceback (most recent call last):
File "calibre_plugins.Reading_Goal.main", line 219, in manage_reading_goal
File "calibre_plugins.Reading_Goal.main", line 1425, in custom_challenges
File "calibre_plugins.Reading_Goal.main", line 1128, in __init__
File "calibre\gui2\widgets2.py", line 225, in __init__
File "calibre_plugins.Reading_Goal.main", line 1137, in setup_ui
File "calibre_plugins.Reading_Goal.main", line 1211, in create_tree
KeyError: 'summary'
Attached Thumbnails
Click image for larger version

Name:	calibre_aEPcyV7Dge.jpg
Views:	29
Size:	37.9 KB
ID:	203708   Click image for larger version

Name:	calibre_WUvZzo48ZG.jpg
Views:	31
Size:	38.5 KB
ID:	203709   Click image for larger version

Name:	Ho3cDwBylq.jpg
Views:	25
Size:	31.6 KB
ID:	203710  
Wiggo is offline   Reply With Quote
Old 09-11-2023, 01:29 PM   #176
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: 946
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by Wiggo View Post
hmmm...am I doing something wrong?

Neither with my composite column nor with a newly created one from the options do books appear in the reading goals.
select book in book list --> add to reading goal --> four digits year --> edit reading goal = empty, but year 2023 is visible
If I add a book read in 2022 reading goal is still empty but 2022 is visible too.

Additionally if I try to add a custom challenge I get this error

Spoiler:

I'm going to need some more info to help you.
Please follow these steps:

1) Restart calibre in debug mode (Ctrl+Shift+R)
2) Open the 'Edit reading goal' dialog and then close it
3) Select some books and add them using the main menu option: 'Add to reading goal'
4) What message did you get?
5) Now, select the same books and click in 'Remove from reading goal'
6) What message did you get?
7) Open the 'Statistics' dialog
8) Close calibre
9) The debug log will open. Copy its contents and post here.
thiago.eec is offline   Reply With Quote
Old 09-11-2023, 02:03 PM   #177
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: 946
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by thiago.eec View Post
I'm going to need some more info to help you.
Please follow these steps...
Scratch that. Just found the bug.
I've done a refactor for this last release and ended up breaking the 'Allow other years' option, when the database is completely empty.

Quote:
Originally Posted by Wiggo View Post
Additionally if I try to add a custom challenge I get this error
That's also fixed. It had a problem with empty databases as well.

Last edited by thiago.eec; 09-11-2023 at 02:17 PM.
thiago.eec is offline   Reply With Quote
Old 09-11-2023, 04:45 PM   #178
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: 410
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Thx a lot.

I will try it tomorrow
Wiggo is offline   Reply With Quote
Old 09-11-2023, 09:25 PM   #179
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: 8,852
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
FWIW, for other Action Chains users, I found it helpful to make a 'Mark as Rereading' chain that:

- Sets percentread to 0
- Clears the lastread date
- (Optional) Adds the book to the to-be-read reading list.
- Adds the book to this year's reading goal.

ownedbycats is offline   Reply With Quote
Old 09-12-2023, 02:08 AM   #180
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,289
Karma: 11806357
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by ownedbycats View Post
FWIW, for other Action Chains users, I found it helpful to make a 'Mark as Rereading' chain that:

- Sets percentread to 0
- Clears the lastread date
- (Optional) Adds the book to the to-be-read reading list.
- Adds the book to this year's reading goal.

I do something similar... for adding a new reading date to goodreads
Terisa de morgan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Reading List kiwidude Plugins 1332 06-05-2024 06:31 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:51 AM.


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