[RELEASE] FilmAffinity (Spanish) scraper

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
spiff Offline
Grumpy Bastard Developer
Posts: 12,171
Joined: Nov 2003
Reputation: 81
Post: #41
you login using your forum credentials.

the there's a 'new ticket' in the upper right hand corner.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
HectorziN Offline
Senior Member
Posts: 107
Joined: Mar 2007
Reputation: 0
Location: Barcelona (Spain)
Post: #42
OK, I got it.

I submited the patch.
the only pendent issue the scraper has is that I don't know how to set the searchstringencoding

I included SearchStringEncoding="ISO 8859-1" but it don't work.
The page I am scraping is this one:

http://www.filmaffinity.com/es/search.php?stext=cariño

But the result is blank because the ñ
What is the format I shoudl use for the encoding?
I have tried a lot:
ISO8859-1
ISO-8859-1
etc.
but no one works.

Thanks

HectorziN
find quote
fidoboy Offline
Fan
Posts: 404
Joined: Oct 2008
Reputation: 0
Post: #43
Hello HectorziN,

I'm trying to use your scraper but it has no config options in XBMC. I wan't to know how can i use it to manually search my movies, because sometimes it retrieves the wrong title. Also the posters quality is a bit low, can u enhace this scraper to get the covers from another source?

A bit offtopic; it's possible to use multiple sources (aka multiple scrapers) in XBMC?? For example if a movie is not found using one scraper, then use another, etc..

Many thanks in advance, kind regards,
find quote
HectorziN Offline
Senior Member
Posts: 107
Joined: Mar 2007
Reputation: 0
Location: Barcelona (Spain)
Post: #44
fidoboy Wrote:Hello HectorziN,

I'm trying to use your scraper but it has no config options in XBMC. I wan't to know how can i use it to manually search my movies, because sometimes it retrieves the wrong title. Also the posters quality is a bit low, can u enhace this scraper to get the covers from another source?

A bit offtopic; it's possible to use multiple sources (aka multiple scrapers) in XBMC?? For example if a movie is not found using one scraper, then use another, etc..

Many thanks in advance, kind regards,

The config options are in the latest version, and it is not included yet in the last t3ch compilation.

The posters quality is low, but there is no way to use a poster from another address without a link in FilmAffinity web page.

It could be possibly to look the poster in imdb, but with the risk of getting a different movie, because the search in imdb could return more than one result.

when the search find a wrong result there is an option in the bottom of the window where you can set the name to search manually

I think is not possible having multiple sources. without changing set content option two times, of course.

HectorziN
find quote
fidoboy Offline
Fan
Posts: 404
Joined: Oct 2008
Reputation: 0
Smile    Post: #45
Thanks for the answer HectorziN, where can i download the latest version of your scraper?? Also, i can't see that option at the window bottom, what theme are u using? i'm using MediaStream and can't see such option... Confused

regards
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,171
Joined: Nov 2003
Reputation: 81
Post: #46
updated scraper is now in svn, r15969

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,171
Joined: Nov 2003
Reputation: 81
Post: #47
oh, and the search string encoding worked fine for me. i made a directory named cariño, set content, did the lookup. got the list your url pointed to.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
fidoboy Offline
Fan
Posts: 404
Joined: Oct 2008
Reputation: 0
Post: #48
And where is the SVN? can you provide a link to download the scraper or attach it here?

regards,

Fido
find quote
w00dst0ck Offline
Junior Member
Posts: 37
Joined: Aug 2008
Reputation: 0
Location: Germany
Post: #49
SVN: https://xbmc.svn.sourceforge.net/svnroot...ers/video/


@HectorziN:
It is possible to get the IMDB Link with a google search.
site:imdb.com +original title +year

I'm using a google wrapper to get the IMDB ID for fanart at my moviemaze scraper.

Code:
<!--URL to Google and Fanart-->
<RegExp conditional="fanart" input="$$8" output="&lt;url function=&quot;GoogleToIMDB&quot;&gt;http://www.google.com/search?q=site:imdb.com+moviemaze\1&lt;/url&gt;" dest="5+">
<RegExp input="$$1" output="\1" dest="7">
    <expression>&lt;h2&gt;\((.*)\)&lt;</expression>
</RegExp>
<RegExp input="$$7" output="+\1" dest="8+">
    <expression repeat="yes">([^ ,]+)</expression>
</RegExp>
<expression></expression>
</RegExp>

<!--GoogleToIMDB-->
<GoogleToIMDB dest="5">
<RegExp input="$$2" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;&gt;&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;url function=&quot;GetFanart&quot;&gt;http://api.themoviedb.org/backdrop.php?imdb=\1&lt;/url&gt;" dest="2+">
<expression>/title/([t0-9]*)</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GoogleToIMDB>

<!-- Fanart -->
<GetFanart dest="5">
<RegExp input="$$2" output="&lt;details&gt;&lt;fanart url=&quot;http://themoviedb.org/image/backdrops&quot;&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;thumb preview=&quot;/\1/\2_poster.jpg&quot;&gt;/\1/\2.jpg&lt;/thumb&gt;" dest="2">
<expression repeat="yes">/([0-9]*)/([t0-9-]*).jpg&lt;/URL</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
</GetFanart>
(This post was last modified: 2008-10-22 10:15 by w00dst0ck.)
find quote
HectorziN Offline
Senior Member
Posts: 107
Joined: Mar 2007
Reputation: 0
Location: Barcelona (Spain)
Post: #50
w00dst0ck Wrote:SVN: https://xbmc.svn.sourceforge.net/svnroot...ers/video/


@HectorziN:
It is possible to get the IMDB Link with a google search.
site:imdb.com +original title +year

I'm using a google wrapper to get the IMDB ID for fanart at my moviemaze scraper.

Code:
<!--URL to Google and Fanart-->
<RegExp conditional="fanart" input="$$8" output="&lt;url function=&quot;GoogleToIMDB&quot;&gt;http://www.google.com/search?q=site:imdb.com+moviemaze\1&lt;/url&gt;" dest="5+">
<RegExp input="$$1" output="\1" dest="7">
    <expression>&lt;h2&gt;\((.*)\)&lt;</expression>
</RegExp>
<RegExp input="$$7" output="+\1" dest="8+">
    <expression repeat="yes">([^ ,]+)</expression>
</RegExp>
<expression></expression>
</RegExp>

<!--GoogleToIMDB-->
<GoogleToIMDB dest="5">
<RegExp input="$$2" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;&gt;&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;url function=&quot;GetFanart&quot;&gt;http://api.themoviedb.org/backdrop.php?imdb=\1&lt;/url&gt;" dest="2+">
<expression>/title/([t0-9]*)</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GoogleToIMDB>

<!-- Fanart -->
<GetFanart dest="5">
<RegExp input="$$2" output="&lt;details&gt;&lt;fanart url=&quot;http://themoviedb.org/image/backdrops&quot;&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;thumb preview=&quot;/\1/\2_poster.jpg&quot;&gt;/\1/\2.jpg&lt;/thumb&gt;" dest="2">
<expression repeat="yes">/([0-9]*)/([t0-9-]*).jpg&lt;/URL</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
</GetFanart>

Thanks! it is a great idea but.... always returns the same movie? it could return a wrong one, right?

HectorziN
find quote
Post Reply