Page 1 of 1

excluding some names from scheme

Posted: 13 Feb 2019, 10:17
by fireheart2008
I want to exclude certain movies from the naming scheme in 2 levels of directory
folder1\folder2
i've managed to do so by using the 3ry operator {n=~/movie1|movie2|movie9/ ? : } but this [long] line ends up repeated as the argument is different. it's working fine but I think it may be shortened

can i store the names in some variable or something then the second line i don't write it again?
or even better can i put these names in text file to be looked up by the code?

Re: excluding some names from scheme

Posted: 13 Feb 2019, 15:07
by rednoah
Yes, and Yes.

e.g.

Code: Select all

Movies/{n in readLines('/path/to/certain-movies.txt') ? plex.name : plex.tail}