2014-05-15, 22:35
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:
but inside of GetDetails this $$20 is empty. Is it possible at all?
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="<url>\1</url>" 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"><id>(.*)</id></expression>
</RegExp>
</NfoUrl>
but inside of GetDetails this $$20 is empty. Is it possible at all?