View Single Post
Old 01-01-2023, 03:40 PM   #29
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
Quote:
Originally Posted by chaley View Post
I am really confused
Okay I understand it might be best to give some clarity or at least I hope this gets more clear.
Show "Supergirl" - Character "Alex Danvers"
Show "Law and Order" - Character "Alex Cabot"
Show "Law and Order" - Character "Olivia Benson"
Show "Criminal Minds" - Character "Emily Prentiss"
Show "Pretty Little Liars" - Character "Emily Fields"

Let's say the tag is "Alex / Emily"

If the shows are a crossover between "Criminal Minds" and "Law and Order" the tag "Alex / Emily" becomes "Emily Prentiss / Alex Cabot"
If the shows are a crossover between "Pretty Little Liars" and "Law and Order" the tag "Alex / Emily" becomes "Emily Fields / Alex Cabot"

However if either is follow by another tag for example "Olivia / Alex" it won't change into "Alex Danvers / Olivia Benson" based on the show "Supergirl" and "Law and Order"

So for Title 1 both show1 and show3 are true and for Title 2 both show2 and show3 are true


Code:
program:
	show1 = '^Criminal Minds$' inlist $#show && '^Law and Order$' inlist $#show;
	show2 = '^Pretty Little Liars$' inlist $#show && '^Law and Order$' inlist $#show;
	show3 = '^Supergirl$' inlist $#show && '^Law and Order$' inlist $#show;
	output = '';

	for item in $#ao3tags_pair:
		if show1 then
			if item ==  "Alex / Emily" then
				output = output & ',' & "Emily Prentiss / Alex Cabot"
			else
				output = output & ',' & item
			fi;
			continue
		fi;

		if show2 then
			if item ==  "Alex / Emily" then
				output = output & ',' & "Emily Fields / Alex Cabot"
			else
				output = output & ',' & item
			fi;
			continue
		fi;

		if show3 then
			if item ==  "Olivia / Alex" then
				output = output & ',' & "Alex Danvers / Olivia Benson"
			else
				output = output & ',' & item
			fi;
			continue
		fi;
		output = output & ',' & item
	rof;
	output = list_sort(list_remove_duplicates(output, ','), 0, ',')
Maybe I'm taking it to far to want it all in 1 action template, it's okay if it's not possible. I would just have been faster in 1 rather then numerous actions.
Attached Thumbnails
Click image for larger version

Name:	Schermafbeelding 2023-01-01 213119.jpg
Views:	67
Size:	21.7 KB
ID:	198785  
ackomb is offline   Reply With Quote