I would like to use the {collections} for movies.
i put my movies in to alpha folders and do not use the 'the'
ie Her would be in t:/H/Her/her.mkv
problem arises for collections where the movie name does not start with the same letter as the collection name
ie The Anamatrix gets put in t:/A/Matrix collection//the Anamatrix
I thought i would be a smarty pants and put in an 'if' statment
I kinda got it working

I did find this code
Code: Select all
{any{collection}{n} =~ /^(?i)[a-z]/ ? n[0] : '#'}
here is the code i am using
Code: Select all
t:\new\Movies\{if ({collection}==null){n0 = n.sortName().charAt(0); n0.isDigit() ? '0-9' : "$n0\\"};if ({collection}!=null){c0=collection.sortName().charAt(0); c0.isDigit() ? '0-9' : "$c0\\"}}{"$collection\\"}{n} [{y}]\{n} [{y}] [ID IMDB tt{imdb.imdbid}]{fn.contains('trl') || fn.contains('Trailer')|| fn.contains('trailer')|| fn.contains('TRAILER') ? '.'+'[Trailer-'+ resolution +']':""}{if (ext =~ /watched/)'.'+fn.match(/\.(avi|mkv|mp4|mov)$/)}{if (ext =~ /jpg/)'.'+fn.match(/(banner|videoimage|wide|fanart)$/)}