2009-08-10, 17:28
Currently we have to manually set the item information for plugins via function "setInfo(type, infoLabels) ".
What I purpose is to have another function "setInfoByScraper(type, scraperFile)" where it will load all information automatically using the provided scraper file.
I am planning on doing the following changes to listitem.cpp:
Looking for more feedback before I continue on development of this patch.
[WIP Patch]
http://xbmc.pastebin.com/md263781
What I purpose is to have another function "setInfoByScraper(type, scraperFile)" where it will load all information automatically using the provided scraper file.
I am planning on doing the following changes to listitem.cpp:
Code:
1) Add new function setInfoByScraper(type, scraperFile)
1) Create a CIMDB object
2) Create a CSScraperInfo object
3) Create a CScraperParser object with the provided scraper file.
4) Pass CSScraperInfo into CIMB object
5) Call CIMDB::FindMovie()
6) Call CIMB::GetDetails
[WIP Patch]
http://xbmc.pastebin.com/md263781