Hi,
I use this syntax for renaming my TV-shows seriesFormat=TV-Shows/{n}/{'s'+s.pad(2)}/{n} - {s.pad(2)}x{e.pad(2)} - {t.lowerTrail().replacePart(', Part $1')}
Does anyone knows how handle episodes that are named series - sxe - part x when using replacePart?
For example "The Pacific - 01x01 - Part One becomes "The Pacific - 01x01 - , Part One"
Part identifier
Re: Part identifier
Bad side effect. You can do you're own replacement code or just check that the title doesn't start with Part before u use replacePart
You can do this to only replace numbers, but keep things as they are for non-number part identifiers (e.g. "One"):
You can do this to only replace numbers, but keep things as they are for non-number part identifiers (e.g. "One"):
Code: Select all
replacePart{g0, g1 -> g1 =~ /\d/ ? ', Part '+g1 : g0}
Please read the FAQ and How to Request Help.