Regex match in CreateSearchURL xbmc crash

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
edlv Offline
Junior Member
Posts: 1
Joined: Nov 2008
Reputation: 0
Post: #1
Hello,

I try to tweak kinopoisk.ru scraper. But I have very little experience with scrapers. I cannot understand what I'm doing wrong - maybe someone can explain.

As I understood buffer $$1 holds cleaned filename something like "Die Hard (1988)"
And all what I try to do is regexp match on this string to split title and year.

My modified CreateSearchURL function:

<CreateSearchUrl dest="3" SearchStringEncoding="CP1251">
<RegExp input="$$1" output="http://www.kinopoisk.ru/index.php?level=7&amp;from=forma&amp;result=adv&amp;m_act%5Bfrom%5D=forma&amp;m_act%5Bwhat%5D=content&amp;m_act%5Bfind%5D=\1&amp;m_act%5Byear%5D=\2" dest="3">
<expression>([^\(]+)\(([0-9]*)</expression>
</RegExp>
</CreateSearchUrl>

When I tried to get movie details using this scraper XBMC crashed.

Thank you.

P.S Sorry for my English.
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #2
apart from the excessive spaces i don't see anything wrong with it
find quote