XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Scraper Development

Scraper Development Developers forum for meta data scrapers. Scraper developers only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-11-26, 11:46   #1
edlv
Junior Member
 
Join Date: Nov 2008
Posts: 1
edlv is on a distinguished road
Default Regex match in CreateSearchURL xbmc crash

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&am p;m_act%5Bfrom%5D=forma&amp;m_act%5Bwhat%5D=conten t&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.
edlv is offline   Reply With Quote
Old 2008-11-26, 16:27   #2
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

apart from the excessive spaces i don't see anything wrong with it
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
spiff is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:30.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project