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 2009-01-07, 18:39   #1
neuron
Junior Member
 
Join Date: Jan 2009
Posts: 2
neuron is on a distinguished road
Default resolving $INFO[url]

I see this in the imdb scraper:
Code:
<RegExp input="$$1" output="&lt;url&gt;http://$INFO[url]/find?s=tt;q=\1$$4&lt;/url&gt;" dest="3">
Where's that resolved?

Trying to write a commandline parser, but your not making it easy :P

atm I'm doing this in my code:
Code:
	m_parser.m_param[0] = "Fight Club";

	m_result = m_parser.Parse("CreateSearchUrl");
	WriteResult("url.xml");
	cout << "URL :" << m_result << "\n";

	CScraperUrl srcUrl(m_result);
	cout << "URL : " << srcUrl.m_url[0].m_url.c_str() << "\n";
And that produces:
Code:
http://$INFO[url]/find?s=tt;q=Fight Club
And now I'm more or less stuck :P
neuron is offline   Reply With Quote
Old 2009-01-07, 19:01   #2
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

url is a setting, as you can see in GetSettings

$INFO[url] is the value of that setting.
__________________
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
Old 2009-01-07, 21:34   #3
neuron
Junior Member
 
Join Date: Jan 2009
Posts: 2
neuron is on a distinguished road
Default

Ahh, thank you very much, that cleans up a lot. Searching through for imdb.com to find the url my eyes read that setting as just another regex
neuron 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 15:10.


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