Kodi Community Forum
[RELEASE] FilmAffinity (Spanish) scraper - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (/forumdisplay.php?fid=27)
+---- Forum: Metadata scrapers (/forumdisplay.php?fid=147)
+---- Thread: [RELEASE] FilmAffinity (Spanish) scraper (/showthread.php?tid=25389)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

[RELEASE] FilmAffinity (Spanish) scraper - HectorziN - 2007-03-22 17:30

Hello guys.

In last build, is included a new Spanish scraper by Jurrabi. This scraper uses http://www.culturalianet.com
I tried this, and I found this web page hasn’t enough information. I decided then making a new scraper using http://www.filmaffinity.com web page. This scrapper supports all of this:

- Title
- Plot
- Outline (when available for the movie)
- Year
- Director
- Country and original version title (used mpaa tagline for this)
- Credits
- Genre
- Nominations, Oscars, and other prices (used mpaa field for this)
- Rating
- Votes
- Runtime
- Actor name

I think that it could be useful adding it to next releases.
Where can I post the xml file and the gif file?

Best Regards.

HectorziN (From Spain)

- Nuka1195 - 2007-03-22 18:25

submit a patch on SF.


FilmAffinity Scraper Download - HectorziN - 2007-03-22 18:30



- HectorziN - 2007-03-23 10:41

I don't know how submit a patch. I have posted here a link to download. Guys, try to test it and evaluate. I think that it is very good. I haven't found a movie that dont' work with this scraper.

The only problem I have found, and I don't know how to solve it, is that don't work when the search string contains ñ, á, é, í, ó and ú. you mast search using n, a, e, i, o and u.

If anybody knows how to fix, please, tell me.

I am waiting your comments.

- spiff - 2007-03-26 15:44

sounds like encoding issues to me. make sure you properly specify utf vs not in your returned xml's.

- spiff - 2007-03-27 19:03

seems to be working fine. i'll hold off a couple of days to see if you nail that issue, then i'll commit to svn.



problems with ñ - HectorziN - 2007-03-29 09:03

the problem is that xbmc transforms ñ to ñ
In culturalianet.com, a search to ñ works, but filmaffinity.com needs to receive %F1.

The problem is that is xbmc who send ñ to the parer, then the parser cannot do anything with this.... This is what I think is happening.

Here is the log

INFO: Get URL: http://www.filmaffinity.com/es/search.php?stext=cuando+llama+un+extraño&stype=title

if you paste this url into internet explorer it won't find anything, but if you paste http://www.filmaffinity.com/es/search.php?stext=cuando+llama+un+extra%F1o&stype=title then it will work. How can this be fixed?


- spiff - 2007-03-29 12:32

we need some way for the scraper to say that it wants iso not utf chars. will have a crack at it later.

- HectorziN - 2007-03-29 13:48

OK, thanks, I'll wait for the new scraper functionallity

- HectorziN - 2007-04-03 17:03

Any progressConfused
is there a new definition of scraper languaje to explicit if dthe search using utf or iso?

Thanks a lot.

Also, anyone has test this scrapper? what do you think?

- HectorziN - 2007-08-10 15:46

Hello spiff.

it will be abailable anything to select utf or iso when searching?
if not. I think that we could include the filmaffinity scrapper anyway. what do you thing?


- spiff - 2007-08-10 16:00

oh my. this was an old one biting meSmile

had forgotten all about this. i suggest we stick it in svn as is, then i'll look into a fix when i have the time

- HectorziN - 2007-08-10 16:36

how can I stick it in svn?

- spiff - 2007-08-10 16:48

submit it as a patch on sf.

i will do the stickingSmile

- HectorziN - 2007-08-10 17:27

Sorry, I submited it, but assigned to nobody, I should mismatch this field...
I suppouse I should submitted it to you.

I have attach the scrapper itself