I have been tried all nite to find a way to Identify the Language in the video file, have tried most or snippets of code I could find here on the site but I keep getting binding error or Language Unknow. I would like to sort danish movies to their own folder, Ive tried using {country} to and getting binding error undefined
this is the code im working with
Code: Select all
{genres.contains('Animation') ? 'Cartoons' {sort danish movies here}:{n.sortName()[0].match((~/(?i)[0-9]/):'0-9',(~/(?i)[a-d]/):'ABCD',(~/(?i)[e-h]/):'EFGH',(~/(?i)[i-l]/):'IJKL',(~/(?i)[m-p]/):'MNOP',(~/(?i)[q-t]/):'QRST') ?: 'UVWYXZ'}/{n} {y}
p.s
what is the correct way of doing this
Code: Select all
{genres.contains('Science Fiction') ? 'Sci-Fi' : genres[9]}