2011-05-15, 03:53
olympia Wrote:You're right, the function works, I was looking at the wrong imdb page.
Please revert ALL your changes until the last bit and try to test your movies if you delete line 175-180 of metadata.imdb.com/imdb.xml.
Hi Olympia,
Mixed results, in some movies helped in others no. But my conclusion is that by going to AKAS it is impossible to get 100% accurate results (for me an accurate result is to get the title displayed in http://www.imdb.com/title/ttxxxxxx) - maybe I am wrong in my criteria.
Ideally, according to me and after analyzing countries and akas of several movies in my collection, the logic should be something like:
1. if country movie in (USA, UK, Canada and alike) then Title = Original Title
2. if there is a country not in the above list, then look for the AKA title tagged as USA.
3. And if there is no AKA title tagged as USA then take the one with the International tag.
I am incapable of doing the above because I have no idea of regex and xml (I am impressed that there are no "if"s and "then"s in the xmdb.xml file) but in any case it is no perfect, it would fit 95% percent of the movies but take the following 4 exception examples:
Code:
*** Das Experiment (2001) (Germany)
The displayed title in www.imdb.com is Das Experiment, the country is not USA or alike, but no way to get it from the AKAS list below.
AKAS:
"The Experiment" - International (English title) (literal title), USA (video title)
"El experimento" - Argentina, Peru, Spain
"A Experiência" - Brazil, Portugal
"L'expérience" - Canada (French title), France
"Эксперимент" - Russia
"A kísérlet" - Hungary
"Deney" - Turkey (Turkish title)
"Eksperiment" - Croatia (imdb display title)
"Eksperiment" - Serbia (imdb display title)
"Eksperimentet" - Norway
"Eksperimentet" - Denmark
"Eksperyment" - Poland
"Es" - Japan
"Experiment - Ihmiskoe" - Finland (TV title)
"Experimentet" - Sweden
"L'expériment" - Canada (French title) (DVD title)
"O Experimento" - Brazil (festival title)
"The Experiment" - Italy
"The Experiment - Cercasi cavie umane" - Italy (imdb display title)
"To peirama" - Greece (transliterated ISO-LATIN-1 title)
*** Walk the Line (2005) (USA, Germany)
Germany is in the country list, The AKA USA is not the American/International (not displayed at www.imdb.com) and the International tag corresponds to the Spanish title.
AKAS:
Walk the Line Canada (French title) / Finland / France / Germany / Greece
Johnny & June - Pasión y locura Argentina / International (Spanish title) / Venezuela
A nyughatatlan Hungary
Cash USA (original script title)
En la cuerda floja Spain
Hod po rubu Croatia
Johnny & June Brazil
Nagu noateral Estonia
Quando l'amore brucia l'anima Italy
Sinirlari asmak Turkey (Turkish title)
Spacer po linie Poland
Wôku za rain: Kimi ni tsuzuku michi Japan
**** The Good, The Bad, The Weird (2008) (South Korea)
There are two International tags that also has "English Title", the scraper is returning the wrong: "Nom Nom Nom"
AKAS:
The Good, the Bad, the Weird International (English title) / Sweden (imdb display title)
Хороший, плохой, долбанутый Russia
A jó, a rossz és a furcsa Hungary (imdb display title)
Dobar, los, cudan Croatia (imdb display title)
Dobry, zly i zakrecony Poland
El bueno, el malo y el raro Spain (imdb display title)
El bueno, el malo, el loco Argentina (festival title)
Good Bad Weird Japan (English title)
Hea, halb ja kummaline Estonia (alternative title)
Hodný, zlý a divný Czech Republic
Le bon, la brute et le cinglé France
Nom Nom Nom International (informal short title) (English title)
O kalos, o kakos kai o paraxenos Greece (festival title)
O kalos, o kakos ki o periergos Greece (transliterated ISO-LATIN-1 title)
Os Invisíveis Brazil (DVD title)
**** Shinjuku Incident (2009) (Hong Kong)
Country is not USA but the AKA-USA is not correct so my ideal algorithm does not work here neither.
AKAS:
Jackie Chan in Shinjuku Incident USA (dubbed version)
Kanli hesaplasma Turkey (Turkish title)
La Vendetta del Dragone Italy
Leszámolás Tokióban Hungary (imdb display title)
O ektelestis tis Yakuza Greece (DVD title)
Shinjuku Incident International (English title)
Shinjuku Incident: Guerre Des Gangs à Tokyo France (DVD title)
Stadt der Gewalt Germany (DVD title)
Xin Su shi jian Hong Kong (Mandarin title)
Is there a way to make the search of the title in http://www.imdb.com (or google) instead of akas.imdb.com and get the displayed title in order to get the American/International title?
My second option would be to give the option to the user that in addition to get fanart from TheMovieDB.com, get also the title (a recommended option for those looking for the American/International title).
In my collection TheMovieDB titles are perfect except for the "Das Experiment" movie, I got there also "The Experiment". I prefer the movie info provided by IMDB, so I will keep this scraper with "Keep Original" as IMDB is unpredictable and forcing the foreign titles with the movie.nfo file, but would be nice if other approaches as the suggested are taken into consideration.
Again, thank you very much for your attention and sorry for the extension of this note.