View Single Post
Old 07-14-2022, 05:25 PM   #1
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Renaming items on a list

Quote:
Originally Posted by chaley View Post

Code:
program:
	a = list_intersection($ao3tags, 'tram, train, bus, ferry', ',');
	list_union($#genre, a, ',')
I'm assuming one could use something similar to replace 'tram, train, bus, ferry' by lets say 'public transport' using the template functions. Still trying to wrap my head around this. But it looks very useful for what I'm trying to do. Because when you have quite a few items you want to amend it gets rather frustrating to use the built in search and replace option.

Also I'm not sure I understand how to use the template scope properly to search and then get the "template output is calibre search' using listed items.

I sort of got it to work, but I'm not sure I use this correctly:
Code:
#tags_show:"=tram" or
#tags_show:"=bus"
I'm looking for something like:
Code:
search(#tags_show, ('tram, bus')
I used to regex shit like this while downloading, but my personal.ini in FFF got way to long and it slowed my download immensely. Doing this afterwards makes more sense. Using action chains give me more control.
ackomb is offline   Reply With Quote