Filebot is phenomenal. I have been using it for more than a year, but have recently found out some things are not working the same way anymore so I have to make some corrections.
I have stumbled upon 2 issues:
1. The expression to move the word "The" to the end of the title in the folder name (except when used in "Collections") is somehow not working anymore but I can not see why.
My expression, customized from some provided in forum:
Code: Select all
"movieFormat=Movies/{def t = c{collection.upperInitial().replaceAll(':',' -').replaceAll(/[\`´‘’‘]/, \"'\").replaceAll(/[!?.]+$/).replaceTrailingBrackets()};if(t!=null) return (t+'/');}{(n =~ /\^[Tt]he / ? n[4..-1]+', The' : n =~ /\^[Aa] / ? n[2..-1]+', A' : n).upperInitial().replaceAll(':',' -').replaceAll(/[\`´‘’‘]/, \"'\").replaceAll(/[!?.]+$/).replaceTrailingBrackets()} ({y}){\" [$source]\"}{def g = c{group}; if(g!=null && g!=\"DrSi\") return ('['+g+']');}{def h = c{group}; def m = c{fn.match(/-([\^-.]+)/)}; if(m!=null && m!=\"DL\" && m!=\"dl\" && (h != m || m==\"DrSi\")) return ('['+m+']');}/{n.upperInitial().replaceAll(':',' -').replaceAll(/[\`´‘’‘]/, \"'\").replaceAll(/[!?.]+$/).replaceTrailingBrackets()}{\".($y)\"}{'['+fn.replaceAll(/(?i)directors|theatrical/, '$0 Cut').matchAll(/UNRATED|REMASTERED|EXTENDED|UNCUT|DIRECTORS.CUT|THEATRICAL.CUT/).join('][').upperInitial().lowerTrail()+']'}{def e = c{fn.matchAll(/3D/)}; if(e!=null) return ('.['+e+']')}{\".[$source]\"}{\".[$vf]\"}{\".[$resolution]\"}{\".[$vc]\"}{\".[$ac]\"}{\".[$af]\"}{def g = c{group}; if(g!=null && g!=\"DrSi\") return ('.['+g+']');}{def h = c{group}; def m = c{fn.match(/-([\^-.]+)/)}; if(m!=null && m!=\"DL\" && m!=\"dl\" && (h != m || m==\"DrSi\")) return ('.['+m+']');}{\".CD$pi\"}{\".$lang\"}{fn.match(/[.]fanart|[.]mkv|[.]avi|[.]mp4|[.]nfo/)}"
Log shows (not to clutter post I'm just pasting relevant info):
Parameter: music = n
...
Exclude: H:\New Media\Summer Hits 2014\01............
Exclude: H:\New Media\Summer Hits 2014\02............
...
(all music files listed)
...
Clean clutter files and empty folders
Delete H:\New Media\Summer Hits 2014\01............
Delete H:\New Media\Summer Hits 2014\02............
...
(all music files actually deleted)
...
Delete H:\New Media\Summer Hits 2014
Done Ńâż(´╝áÔîĺŃâ╝Ôîĺ´╝á)ŃâÄ
Is it possible to identify the (likely mine) errors and make it work again perfectly?
Thanks!
Mimo