![]() |
#676 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#677 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,162
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks.
Also, what's the best way to copy an identifier URL if you don't need the html in urls_from_identifiers? I thought of using strcat to construct it but I'm having trouble remembering what to use to extract the ID itself. |
![]() |
![]() |
![]() |
#678 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
use select() to get the value of an identifier.
|
![]() |
![]() |
![]() |
#679 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,162
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
thank you! that worked!
|
![]() |
![]() |
![]() |
#680 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Nov 2023
Device: Kindle Oasis
|
hi, I'm having trouble with coloring my "reading progress" column, it glitches.
and if somebody have an alternative way to do it, i would appreciate the help |
![]() |
![]() |
![]() |
#681 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,162
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question:
Code:
program: status = readstatus(); times = $$#timesread; switch_if( status=='read', 'Read', status=='didnotfinish', 'Did Not Finish', status=='currentlyreading', if times >#0 then 'Currently Rereading' else 'Currently Reading' fi, status=='toberead', if times >#0 then 'To Be Reread' else 'To Be Read' fi, status=='unread', if 'readinggoal:' in $#admintags then 'Backlog' else 'Unread' fi, '' ) |
![]() |
![]() |
![]() |
#682 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
if 'readinggoal:' & format_date(today(), 'yyyy') in $#admintags then 'Backlog' else 'Unread' fi |
|
![]() |
![]() |
![]() |
#683 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,162
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Ah, does a '&' work the same as a strcat in this instance? That's what I was trying but having trouble inserting it into the line.
|
![]() |
![]() |
![]() |
#684 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Here it is with strcat(). Code:
if strcat('readinggoal:', format_date(today(), 'yyyy')) in $#admintags then 'Backlog' else 'Unread' fi |
|
![]() |
![]() |
![]() |
#685 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2024
Device: Kindle Paper White
|
Can I create a template or plugboard to do the following?
Is it possible to create a template that can be used to do the following when importing books:
1. Ensure that author is always = last name, first name (title case) 2. Title is always title case 3. Tags can be changed into a set list of tags (convert the incoming tags to ones I want and then drop the rest) 4. Series will be listed name and series number 5. Make sure the rating field is blank 6. Make sure the comment field is blank 7. strip blanks that appear in names or titles as _ Sorry I am not a programmer and the help functions were not at my level of understanding so I do not know what syntax to use. |
![]() |
![]() |
![]() |
#686 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Ask for help in that plugin's thread. |
|
![]() |
![]() |
![]() |
#687 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,250
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Simple answer for a not simple desired result: NO
If the metadata is embedded, Calibre populates the fields upon adding. <<<< There are tools to help tame, but that requires YOU to write each rule. Considering the dreaded VARIATIONS Preferences:Adding Books:Adding Actions (a tab) The whole bottom is where you start (there are none out of the box) OTOH Download Metadata has its own configuration Preferences:Metadata download (there are configure buttons on some forms that get you here also) Sources to look at. This also allows you to set Cover (use choice) priority On the Right: Is the Master Use or not use ticks BUT the Configure button BELOW the Sources allows you to fine tune these by Selected Source, (AKA Cherry pick ![]() The others are pretty self explanatory. (hover on the item for more details) Again: These do not affect Previously Embedded at import time. |
![]() |
![]() |
![]() |
#688 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,162
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
program: if '(In-Progress|Dormant|Abandoned)' in $#fanficstatus || $#fanficstatus=='Oneshot' && $$#pagecount<30) || readstatus()=='read' then $#admintags else columnupdate_admintags_readinggoal() fi Issue: columnupdate_admintags_readinggoal() adds "readinggoal:{currentyear}" to admintags. I noticed the tag (which auto-adds books to Reading Goal addon) was showing up on certain fics where it shouldn't, specifically oneshots of less than 30 pages. I think I know why - FanFicFare calls both Action Chains and Count Pages simultaneously upon fic download, so the chain with this template runs before Count Pages has a chance to populate the column. If I'm right and <30 doesn't include the nulls, then I'll just update the template to exclude oneshots entirely and add the tag manually. Last edited by ownedbycats; 07-08-2024 at 12:32 PM. |
![]() |
![]() |
![]() |
#689 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Your template is using a string comparison (<). I suspect you want a numeric comparison (<#). The raw_field() function has a default value parameter to use if the field is None. For example, if you want something other than zero for None you could use Code:
raw_field('#pagecount', 100) <# 30 |
|
![]() |
![]() |
![]() |
#690 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,162
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yeah, makes sense... still, considering the unpopulated-pagecount issue, I figure I'll just exclude the oneshots and add them manually.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 156 | 07-23-2024 11:45 PM |
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 02:35 AM |
Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 11:37 AM |
[OLD Thread] Some questions before buying the fire. | darthreader13 | Kindle Fire | 7 | 05-10-2013 09:19 PM |
Thread management questions | meme | Feedback | 6 | 01-31-2011 05:07 PM |