Code: Select all
{collection.upperInitial().replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!")}/{n.upperInitial().replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!")} ({imdb.released.year}, {imdb.rating},{' '+vf}{' '+source}, {imdb.genres.take(3).join('-')})/{n.upperInitial().replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!")}{" CD$pi"} [{imdb.director} - {imdb.actors.take(3).join(', ')}]
P:\English Movies\The Girl Next Door (2004, 6.8, 720p BRRip, Comedy-Drama-Romance)\The Girl Next Door [Luke Greenfield - Emile Hirsch, Elisha Cuthbert, Timothy Olyphant]
But now i want to rename it so that it also includes the tag 'Unrated' like below:
P:\English Movies\The Girl Next Door (2004, 6.8, 720p BRRip Unrated, Comedy-Drama-Romance)\The Girl Next Door [Luke Greenfield - Emile Hirsch, Elisha Cuthbert, Timothy Olyphant]
I tried the script below but it didn't work :
Code: Select all
{collection.upperInitial().replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!")}/{n.upperInitial().replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!")} ({imdb.released.year}, {imdb.rating},{' '+vf}{' '+source} {' '+fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/).upperInitial().lowerTrail().sort().join('-').replaceAll(/[._]/, " ")}, {imdb.genres.take(3).join('-')})/{n.upperInitial().replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!")}{" CD$pi"} [{imdb.director} - {imdb.actors.take(3).join(', ')}]