Remove name if it contains certain string
Posted: 08 Feb 2022, 11:22
Hi,
some files in anidb only have Volume n or Episode n as Episodes names and in that case I would like to not show any Episodename.
How do I do that?
I used:
But it just deletes the whole Episodename.
What I want is that if t is nothing else than "Episode x" or "Volume x" then nothing will be shown otherwise the Episodename.
some files in anidb only have Volume n or Episode n as Episodes names and in that case I would like to not show any Episodename.
How do I do that?
I used:
Code: Select all
{t.contains(Volume|Episode) ? " " : " - " + norm(t).take(40)}
What I want is that if t is nothing else than "Episode x" or "Volume x" then nothing will be shown otherwise the Episodename.