Having the following code:
{(media.title).matchAll(/One|Two|Three|Four/).unique()}
I make as if none of the elements does not leave anything, I now pulls a [java.lang.Exception: Pattern not found]
Pattern not found
Re: Pattern not found
Code: Select all
{"One Two Three".matchAll(/One|Two|Three|Four/).unique()}
Code: Select all
{"Not A Number".matchAll(/One|Two|Three|Four/).unique()}
So what's the value of media.title then? Whatever it is, I know for a fact that it doesn't contain the One|Two|Three|Four pattern.

PS: Did you know that media.title is a MediaInfo property based on the tags in the file content, which may or may not be set?

Re: Pattern not found
Sorry but not for numbers, is for trackers
{(media.title).matchAll(/GrupoHDS|HDTeam|Hechede.me|HDCity/).unique()}
sorry thought I would serve the example with numbers
{(media.title).matchAll(/GrupoHDS|HDTeam|Hechede.me|HDCity/).unique()}
sorry thought I would serve the example with numbers
Re: Pattern not found
"Pattern not found" is what you get when {media.title} doesn't contain your pattern. That's how it should be.
Re: Pattern not found
Yes, I understand, what I want is that when the pattern does not exist not put anything