File Renaming including English and Foreign Titles
Posted: 25 Feb 2019, 03:03
I've only been testing this program for about a week on Windows 10. I have managed to find the answers to most of my questions on this great forum for my GUI coding (not yet prepared to try AMC script). Except I am stumped with one specific movie that is not yielding the expected result
Here is the movie link
https://www.themoviedb.org/movie/401545 ... uage=en-US
Here is the code:
Similar to my other foreign movies I was expecting the output to be:
Everybody Knows (2018) Todos lo saben
Instead it's just
Everybody Knows (2018)
These are the results of some of the partial coding:
{primaryTitle.transliterate("latin")} yields Todos lo saben
{info.OriginalLanguage} yields es
{info.SpokenLanguages} yields en,de,es,it,ca
I thought maybe it was because this movie has two languages listed as Original Languages but not sure how to correct for that. Any help or direction would be appreciated.
Thanks
J
Here is the movie link
https://www.themoviedb.org/movie/401545 ... uage=en-US
Here is the code:
Code: Select all
{n.colon("-").replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)} ({y}) {info.OriginalLanguage =~ /^(?i)['en']/ ? '' : primaryTitle.transliterate("latin")}
Everybody Knows (2018) Todos lo saben
Instead it's just
Everybody Knows (2018)
These are the results of some of the partial coding:
{primaryTitle.transliterate("latin")} yields Todos lo saben
{info.OriginalLanguage} yields es
{info.SpokenLanguages} yields en,de,es,it,ca
I thought maybe it was because this movie has two languages listed as Original Languages but not sure how to correct for that. Any help or direction would be appreciated.
Thanks
J