Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84005

need help on clearbuffers="no" usage

$
0
0
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:

Code:
<GetDetails dest="3" clearbuffers="no">
    <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
        <RegExp input="$$1" output="\1" dest="11">
            <expression trim="1" noclean="1">movie.gif&quot; border=&quot;0&quot;&gt; (.*?)(\(AKA|&lt;)</expression>
        </RegExp>
        <RegExp input="$$1" output="\1" dest="12">
            <expression trim="1">T&amp;Iacute\;TULO ORIGINAL&lt;/th&gt;\s*&lt;td&gt;&lt;strong&gt;(.*?)(&lt;|\(AKA)</expression>
        </RegExp>
        <RegExp input="$$1" output="\1" dest="13">
            <expression>A&Ntilde;O&lt;/th&gt;\s*&lt;td&gt;.*?\s*([0-9]{4})\s*&lt;/td&gt;</expression>
        </RegExp>
        <RegExp conditional="!EnableFastSearch" input="$$9" output="&lt;url function=&quot;GetIMDBid&quot;&gt;\1&lt;/url&gt;" 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.

Viewing all articles
Browse latest Browse all 84005

Trending Articles