Kodi Community Forum

Full Version: how to get info from NFO file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to parse and save some data at NfoUrl section for later use inside of GetDetails ?

I need to update one scraper that downloads data from kinopoisk site.
Also this scraper tries to search some info on imdb.
But I already have .nfo files that contains url at kinopoisk and id of imdb.
So I would like to parse this .nfo file to get this id.
I tried next:
Code:
<NfoUrl dest="3">
    <RegExp input="$$1" output="&lt;url&gt;\1&lt;/url&gt;" dest="3">
        <expression noclean="1">(http://www\.kinopoisk\.ru/level/1/film/[0-9]*/|http://www\.kinopoisk\.ru/film/[0-9]*/)</expression>
    </RegExp>
    <RegExp input="$$1" output="\1" dest="20">
        <expression noclean="1">&lt;id&gt;(.*)&lt;/id&gt;</expression>
    </RegExp>
</NfoUrl>

but inside of GetDetails this $$20 is empty. Is it possible at all?