1.
Adding
--filter twice does nothing. The option value that is used last is the one that is used.
2.
This code does not do what you think it does. It merely reads the text file, so it'll return true if the text file is non-empty, and false if the text file is empty, and nothing else:
3.
If your original code uses
readLines() like so:
Code: Select all
--filter "!readLines('/home/plex/excludes.txt').join().findAll(/\d+[^(19|20)\d{2}]/)*.toInteger().contains(id)"
then using
lines() instead would look exactly the same, except that
readLines is replaced with
lines:
Code: Select all
--filter "!lines('/home/plex/excludes.txt').join().findAll(/\d+[^(19|20)\d{2}]/)*.toInteger().contains(id)"
EDIT:
Note that
/\d+[^(19|20)\d{2}]/ doesn't do what you think it does.
[^...] is a negative character set, not a negative-lookahead pattern. I don't have your
/home/plex/excludes.txt text file, but my best guess is that your
--filter just doesn't work, or rather somehow accidentally does something, but probably not actually what you are trying to do.

Please paste a sample
/home/plex/excludes.txt and describe your use case
(i.e. what you are trying to do) so we can help you write a working
--filter expression. You seem to be trying to specifically filter out series IDs listed in your text file?