2009-07-15, 10:11
1) we fill up the buffers starting with 1, second url is stuffed in 2 and so on. this semantic is valid everywhere, for those functions which are passed e.g. title in buffer 2, it should be "the buffer after the last url"
2) i don't get what you mean here? nfourl ultimately returns an url?
3) the cure for that one is called 'beer'
snippet from the c++ code;
btw, you want to have a look at http://trac.xbmc.org/changeset/21675
2) i don't get what you mean here? nfourl ultimately returns an url?
3) the cure for that one is called 'beer'
snippet from the c++ code;
Code:
// download url's
vector<CStdString> strHTML;
for (unsigned int i=0;i<scrURL.m_url.size();++i)
{
CStdString strCurrHTML;
if (!CScraperUrl::Get(scrURL.m_url[i],strCurrHTML,m_http) || strCurrHTML.size() == 0)
return 0;
strHTML.push_back(strCurrHTML);
}
// fill buffers
for (unsigned int i=0;i<strHTML.size();++i)
m_parser.m_param[i] = strHTML[i];
m_parser.m_param[strHTML.size()] = scrURL.m_url[0].m_url;
btw, you want to have a look at http://trac.xbmc.org/changeset/21675