![]() |
|
|||||||
| Scraper Development Developers forum for meta data scrapers. Scraper developers only! Not for posting feature requests, bugs, or end-user support requests! |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jan 2009
Posts: 2
![]() |
I see this in the imdb scraper:
Code:
<RegExp input="$$1" output="<url>http://$INFO[url]/find?s=tt;q=\1$$4</url>" dest="3"> 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";
Code:
http://$INFO[url]/find?s=tt;q=Fight Club |
|
|
|
|
|
#2 |
|
Grumpy Bastard Developer
Join Date: Nov 2003
Posts: 7,715
![]() |
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. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2009
Posts: 2
![]() |
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
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|