Adding Season name and adding "Part " prefix in episode name
Posted: 07 Sep 2021, 10:04
Hello,
I am using my own preset to rename TV series and so far it worked fine but there are two things I still couldn't figure it out.
One is Adding Season title to filename and other is adding prefix of "Part " to multi-part (multipart) episodes
Ex: I want "Power.Rangers.S04E01.A.Zeo.Beginning.1.NTSC.DVD.DD.2.0.MPEG-2.REMUX-WEE" to be renamed to
"Power.Rangers.Zeo.S04E01.A.Zeo.Beginning.Part.1.NTSC.DVD.DD.2.0.MPEG-2.REMUX-WEE"
The preset I am using is "{allOf{n.upperInitial()}{S00e00}{t.upperInitial()}.join('.').space('.').replace("'", "").replace(",", "").replace("&", "And")replace("(", "").replace(")", "").replacePart(', Part $1')}.NTSC.DVD.DD.2.0.MPEG-2.REMUX-WEE "
I have tried ".replacePart(', Part $1')", {if (dc > 1) " Part $di"} for adding Part prefix but it doesn't work. And regarding adding season title I couldn't even find anything.
Help is appreciated
I am using my own preset to rename TV series and so far it worked fine but there are two things I still couldn't figure it out.
One is Adding Season title to filename and other is adding prefix of "Part " to multi-part (multipart) episodes
Ex: I want "Power.Rangers.S04E01.A.Zeo.Beginning.1.NTSC.DVD.DD.2.0.MPEG-2.REMUX-WEE" to be renamed to
"Power.Rangers.Zeo.S04E01.A.Zeo.Beginning.Part.1.NTSC.DVD.DD.2.0.MPEG-2.REMUX-WEE"
The preset I am using is "{allOf{n.upperInitial()}{S00e00}{t.upperInitial()}.join('.').space('.').replace("'", "").replace(",", "").replace("&", "And")replace("(", "").replace(")", "").replacePart(', Part $1')}.NTSC.DVD.DD.2.0.MPEG-2.REMUX-WEE "
I have tried ".replacePart(', Part $1')", {if (dc > 1) " Part $di"} for adding Part prefix but it doesn't work. And regarding adding season title I couldn't even find anything.
Help is appreciated