1.
assumes that the right-handside is a regular expression. The episode title from the database is
not guaranteed to accidentally be a valid regular expression. You probably mean to use
String.contains() to check for a substring match:
2.
sqlallstar wrote: ↑27 Jan 2023, 22:05
I am using this preset to find episodes with only a name and match them properly. (on 4.9.6)
Code: Select all
{episodelist.findAll{ fn =~ it.title }.join(' & ')}
Note that formatting is unrelated to matching. If you "fake" the file path in the format, that has no effect on the underlying
xattr metadata that is the match.
Match by Episode Title would be the recommended approach, though limited to single episode matches.
Match multi-episode out-of-order cartoon episodes by title is an advanced command-line use case which does not have a real 1-step equivalent in the Desktop application as far as I know.
Note your code does not work for the sample file name above, because "Things That Go Bonk" does not contain "The Justice Friends: Things That Go Bonk in the Night" and "The Busboy" does not contain "The Bus Boy". The "Multiple Part Episode by Title" use case is very tricky after all.