Here is my code:
Code: Select all
filebot -script fn:renall "E:/Downloads/Movies" -non-strict -no-xattr --db TheMovieDB --format "D:/Videos/Movies/{n} {'('+fn.replaceAll(/(?i)directors|theatrical|extended|unrated|remastered|ultimate/, '$0 Cut').matchAll(/UNRATED.CUT|REMASTERED.CUT|ULTIMATE.CUT|EXTENDED.CUT|DIRECTORS.CUT|THEATRICAL.CUT/).join('][').upperInitial().lowerTrail()+')'} ({y}) ({source})/{n.colon(' ')} {'('+fn.replaceAll(/(?i)directors|theatrical|extended|unrated|remastered|ultimate/, '$0 Cut').matchAll(/UNRATED.CUT|REMASTERED.CUT|ULTIMATE.CUT|EXTENDED.CUT|DIRECTORS.CUT|THEATRICAL.CUT/).join('][').upperInitial().lowerTrail()+')'} ({y}){if (ext == 'srt') '.eng'}" --log-file "E:/Apps/Scripts/Media/Process.txt" > NUL 2>&1
It's been a long night, please let me know if I need to explain better
