2008-08-07, 11:59
spiff Wrote:if changing the language code is the only change needed, you should do it as a scraper setting. add the valid values to a spinner setting, you can see the tvdb scraper for how that is done (dont mind the extra complication of grabbing the valid line online). then you just replace the language code with $INFO[language] (if you called the setting language).
While the main change is es vs en in URLs, the text labelling the fields also changes from Spanish to English meaning the regex code to match fields needs modifying as well. I have now managed to get all but two of the available working fields, there are some fields not listed on the English version one of which is the plot (so nothing can be done about that). The two fields not working, Writer and Duration, should work and I cannot see why.
Even the cast list, movie rating and movie thumbnail works.
I will upload my latest effort tonight to the same URL as per my previous message in this thread.
For your information, the English search result I have been testing against is at http://www.filmaffinity.com/en/film699914.html and the Spanish version is of course http://www.filmaffinity.com/es/film699914.html