I've been struggling for quite a while with the clearbuffers="no" option, and I haven't found any documentation nor worked example which could have helped me getting it right. I'm currently helping to develop the FilmAffinity scraper for XBMC, and the fact is that I have 3 buffers filled inside the GetDetails function ($$11, $$12 and $$13) which I would love to see is their content inside a custom function I call to get the IMDB id. the reason is that if I'm able to send those variables I'd be able to parse the function results more accurately. this would be the (summarized version of the) code:
even though I'm setting the clearbuffers="no" option in the GetDetails function definition, I'm not seeing these $$12 and $$13 variables' content inside the GetIMDBid function. what should I modify to get it right? any help would be greatly appreciated.
Code:
<GetDetails dest="3" clearbuffers="no">
<RegExp input="$$5" output="<details>\1</details>" dest="3">
<RegExp input="$$1" output="\1" dest="11">
<expression trim="1" noclean="1">movie.gif" border="0"> (.*?)(\(AKA|<)</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="12">
<expression trim="1">T&Iacute\;TULO ORIGINAL</th>\s*<td><strong>(.*?)(<|\(AKA)</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="13">
<expression>AÑO</th>\s*<td>.*?\s*([0-9]{4})\s*</td></expression>
</RegExp>
<RegExp conditional="!EnableFastSearch" input="$$9" output="<url function="GetIMDBid">\1</url>" dest="5+">
<RegExp conditional="!GoogleAdvSearch" input="" output="http://www.imdb.com/xml/find?xml=1&nr=1&tt=on&q=" dest="9">
<expression />
</RegExp>
<RegExp conditional="GoogleAdvSearch" input="" output="http://www.google.com/search?q=site:imdb.com" dest="9">
<expression />
</RegExp>
<RegExp input="$$12" output="+\1" dest="9+">
<!-- unimos con '+' cada palabra -->
<expression repeat="yes">(\w+)</expression>
</RegExp>
<RegExp input="$$13" output="+(\1)" dest="9+">
<expression />
</RegExp>
<expression />
</RegExp>
even though I'm setting the clearbuffers="no" option in the GetDetails function definition, I'm not seeing these $$12 and $$13 variables' content inside the GetIMDBid function. what should I modify to get it right? any help would be greatly appreciated.