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?
excluding some names from scheme
Re: excluding some names from scheme
Yes, and Yes.
e.g.
e.g.
Code: Select all
Movies/{n in readLines('/path/to/certain-movies.txt') ? plex.name : plex.tail}
Please read the FAQ and How to Request Help.