[RELEASE] FilmAffinity (Spanish) scraper - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Metadata scrapers (/forumdisplay.php?fid=147)
+---- Thread: [RELEASE] FilmAffinity (Spanish) scraper (/showthread.php?tid=25389)
English version of FilmAffinity available - jelockwood - 2008-07-26 14:52
The official/standard version of the FilmAffinity scraper produces Spanish language results. There's nothing wrong with that but the FilmAffinity website does offer an English language option and this maybe useful for some people.
As part of an effort to learn how to construct a Scraper, I have made a start at converting the Spanish version to access the English language version.
While the main difference is changing the country/language code in the URLs from es for Espagne to en for English the section that deals with actually scrapping the results also needs changing to look for different keywords. I have made a start on that as well but it still needs additional work.
As currently my knowledge of scrapers is limited I am hoping others here may assist in finishing it.
My initial version can be downloaded here http://homepage.mac.com/jelockwood/.Public/filmaffinityen.zip
- spiff - 2008-08-07 11:04
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).
- jelockwood - 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
Trailers - HectorziN - 2008-10-02 22:57
Hi spiff, filmaffinity web, has a link to trailers of the movies, but this trailers are in youtube.
It is possibly to put as an url for the trailer a link to a youtube video?
I had try with same differents ways of youtube urls and xbmc don't show the videos.
Do you know how to put for example this trailer?
- spiff - 2008-10-03 12:29
i do not know, i suggest you look at one of the youtube plugins/scripts
- HectorziN - 2008-10-07 11:24
I did it.
The scraper now downloads actors thumbnails and also have a link for youtube trailers.
I have tried to upload the new xml scraper but Sourceforge has changed and I cannot find a way to do it. I don't know if I must to be a member in xbmc or something like that, but I cannot do it.
How can i submit this change?
- spiff - 2008-10-07 12:57
xbmc.org/trac is our new tracker
- HectorziN - 2008-10-07 22:39
But can I submit a file without the use of any software?
I think it needs a software to upload files, right?
- spiff - 2008-10-08 11:21
no software required. create a new ticket, tick 'i have files to attach to this ticket'
- HectorziN - 2008-10-13 13:56
How can I create a ticket? I only see an option to view tickets, not create.
Should I be registered to do this? I cannot see a link to register, only one to login.