Firefly -> Firefly (2002)
The Newsroom (2012) -> The Newsroom (2012)
Wilfred (US) -> Wilfred (US) (2011)
I've tried writing if statements to check if the year is present like this:
Code: Select all
{n.contains(y) ? '' : '(y)'}
Thank you
Code: Select all
{n.contains(y) ? '' : '(y)'}
Code: Select all
{n.contains(y) ? '' : ' ('+y+')'}
Code: Select all
D:/Tv/{genres.contains('Documentary') ? 'Docs - Series' : 'Shows'}/{info.status == 'Ended' ? 'Ended' : 'Ongoing'}/{n.replaceAll(/:/,/-/)} {n.contains(y) ? '' : ' ('+y+')'} ({certification}) [{audio.language}] [{series.id}]/Season {s.pad(2)}/{n.replaceAll(/:/,/-/)} - {s00e00} - {t.replaceAll(/:/,/-/).replaceAll(/[!?.]+$/)} - ({airdate.format('yyyy.MM.dd')}) - [{vc} {vf} {ac} {af}]{' ['+file.name.match(/EngSub|EngDub/)+']'}{'.'+lang}
Code: Select all
{n.contains(y as String) ? '' : ' ('+y+')'}
Code: Select all
{n =~ y ? '' : ' ('+y+')'}
Code: Select all
/Volumes/Plex/TV/{ny}/{episode.special ? 'Specials' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(' [$1]')}