Should be %HOMEPATH%\Application Data\XBMC\xbmc.log
or C:\Program Files\XBMC\xbmc.log
BTW: The german website http://www.regex-tester.de/regex.html translated to spanish http://tinyurl.com/5gfxx9 helps alot.
[RELEASE] FilmAffinity (Spanish) scraper
w00dst0ck
Junior Member Posts: 37 Joined: Aug 2008 Reputation: 0 Location: Germany |
2008-10-27 17:22
Post: #61
|
| find quote |
HectorziN
Senior Member Joined: Mar 2007 Reputation: 0 Location: Barcelona (Spain) |
2008-10-30 12:39
Post: #62
One question
I have some functions: Code: <GetMoviePosterDB clearbuffers="no" dest="12">First function has a dest="13" inside Second function has a dest="15" inside As input of second function are $$13 and $$15 This works, and I have as a result the list of thumbs from both pages. The problem I have is the next if I insert this code in the <GetDetails> section: Code: <RegExp input="$$1" output="<url function="GetFilmAffinityPoster">http://www.filmaffinity.com/es/film214384.html</url>" dest="16">you can see $$16 is also an input of the GetIMDBPoster function, but it don't work. Why? Thanks HectorziN |
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2008-10-30 12:44
Post: #63
my suspicion is that you are bitten by the fact that order matters.
remember, the clearbuffers parameter say to not clear buffers after function calls. so the point here is to 1) fill buffer 13 2) fill buffer 15 3) fill buffer 16 4) call GetIMDBPoster not 1) fill buffer 13 2) fill buffer 15 3) call GetIMDBPoster 4) fill buffer 16 and i assume GetFilmAffinityPoster has clearbuffers="no" 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
Senior Member Joined: Mar 2007 Reputation: 0 Location: Barcelona (Spain) |
2008-10-31 00:37
Post: #64
Thanks, I got it. The problem was the order of functions.
I am testing with PC version and it works searching for cariƱo. Is in xbox where don't work. It is possible that SearchStringEncoding is not implemented in xbox version? thanks HectorziN |
| find quote |
HectorziN
Senior Member Joined: Mar 2007 Reputation: 0 Location: Barcelona (Spain) |
2008-11-03 15:48
Post: #65
I am searching for actor thumbs in imdb.
I have a problem with animation movies, in filmaffinity site de actor for this case is: "Animation" Then my scraper searchs for animation in imdb and always finds this: Chuck Jones. How can I avoid searching for actors when the actor is Animation? I should try to remove the Animation code from the buffer to avoid the scraper find it.... Thanks HectorziN |
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2008-11-03 15:52
Post: #66
use an expression that clears a buffer IF you find animation. let this buffer hold the function call. clear if expression matches. append the buffer. problem solved.
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
Senior Member Joined: Mar 2007 Reputation: 0 Location: Barcelona (Spain) |
2008-11-03 16:39
Post: #67
spiff Wrote:use an expression that clears a buffer IF you find animation. let this buffer hold the function call. clear if expression matches. append the buffer. problem solved. I have tried it but.... If I write this: Code: <RegExp conditional="SearchCastThumb" input="$$1" output="<url function="SearchCastThumb">http://spanish.imdb.com/find?s=nm&amp;q=\1</url>" dest="5+">it works, but if I change dest="5+" with dest="9+" then the scraper don't call the function. I know because if dest="5+" the log has this: Get URL: http://spanish.imdb.com/find?s=nm&q=Mar%...E9+Baus%E1 but with 9+ it isn't why? thanks HectorziN |
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2008-11-03 17:50
Post: #68
i assume buffer 9 is never transfered to the one containing the return value from the scraper function..
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
Senior Member Joined: Mar 2007 Reputation: 0 Location: Barcelona (Spain) |
2008-11-03 18:38
Post: #69
spiff Wrote:i assume buffer 9 is never transfered to the one containing the return value from the scraper function.. Yes, I use this: Code: <RegExp input="$$9" output="\1" dest="5+">I tried this code after the call to function and also with the function inside it: Code: <RegExp input="$$9" output="\1" dest="5+">I also tested it with buffer 20 because buffer 9 is used in the scraper and buffer 20 is never used. But don't work in any case. Thanks HectorziN |
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2008-11-03 18:46
Post: #70
you need noclean on the outermost expression or all tags will be stripped off
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 |

Search
Help