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 12-02-2023, 06:24 AM   #346
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: 866
Karma: 1169535
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by ownedbycats View Post
Question: At the end of the year, I will be changing my autoadd tag to readinggoal:2024. Will the books with readinggoal:2023 remain on the goal?
Yes. The autoadd option never deletes anything.
thiago.eec is offline   Reply With Quote
Old 12-03-2023, 03:08 PM   #347
dunhill
Guru
dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.
 
dunhill's Avatar
 
Posts: 666
Karma: 197668
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
Hello @thiago.eec, I'm telling you a question I have.
I have Calibre linked to goodreads but I don't use the reading process, so when I finish reading a book in my calibre I have a status column that will say Read.
Create a custom column for the reading process that depends on the Status column, if it says Read it puts 100 and determines it in numbers.
But I see that I am not taking well the number of books for the month of November.
What could be causing the problem?
Attached Thumbnails
Click image for larger version

Name:	noviembre1.png
Views:	22
Size:	42.3 KB
ID:	205022   Click image for larger version

Name:	noviembre.png
Views:	21
Size:	158.9 KB
ID:	205023   Click image for larger version

Name:	noviembre3.png
Views:	17
Size:	38.8 KB
ID:	205024  
dunhill is offline   Reply With Quote
Old 12-04-2023, 08:07 AM   #348
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: 866
Karma: 1169535
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by dunhill View Post
Hello @thiago.eec, I'm telling you a question I have.
I have Calibre linked to goodreads but I don't use the reading process, so when I finish reading a book in my calibre I have a status column that will say Read.
Create a custom column for the reading process that depends on the Status column, if it says Read it puts 100 and determines it in numbers.
But I see that I am not taking well the number of books for the month of November.
What could be causing the problem?
Hi, @duhill.

I assume your 'goodreadtags' column has multiple values (tags-like), right? Then your template might fail because it compares the whole value of the column. So, if you only have 'Leído' in this column, it will work, but if you have multiple values, like 'Bueno, Leído', it fails.

Check if your '#progresos' column is really showing '100' for all the five books. If not, you can correct it changing 'switch_if' for 'in_list':
Code:
{#goodreadtags:'in_list($, ',', 'Leído', '100', '')'}
P.S.: The above function still has a small problem... if the searched string is part of a larger string, it still matches (e.g.: it would match 'Leídoo' too). Since I'm not very good with the template language, I can suggest something using the Python Mode that will work perfectly, although it might look more complicated:

Code:
python:
def evaluate(book, context):
	if book.get('#goodreadtags'):
		if 'Leído' in book.get('#goodreadtags'):
			return '100'
		else:
			return ''
	else:
		return ''
I'm not sure about the performance difference, though.

Last edited by thiago.eec; 12-04-2023 at 08:10 AM.
thiago.eec 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 1288 08-11-2023 08:40 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


All times are GMT -4. The time now is 12:39 PM.


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