Posts: 369
Joined: Nov 2006
Reputation:
0
2009-05-06, 17:15
(This post was last modified: 2009-05-06, 17:18 by Nicezia.)
I'm on it spiff , its my primary goal as well i started coding the library last night
wasn't that hard, it was pretty much a cut and paste of all the functions i had already written, and from that point adding properties and making sure everything still worked as i t was working as a console program (only without the interface options - so i just took all the items left over in from the console program and transferred them into a test program , everything still works and custom functions are accounted for, now its just the post/get and referrer handling that's left.
Posts: 369
Joined: Nov 2006
Reputation:
0
Okay I'm trying to document my library for those who may potentially use it.
I need to know all the possible types of settings so that i can make suggestions on how to implement them.
So far working with the scrapers that currently exist in XBMC i have only run across labelenum, bool, sep and text. Are there any more?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
'integer'. there are a few properties on the text fields (in particular hidden is of interest). see GUIDialogPluginSettings.cpp
Posts: 369
Joined: Nov 2006
Reputation:
0
2009-05-09, 03:52
(This post was last modified: 2009-05-09, 04:49 by Nicezia.)
The Library itself is complete, but I'm trying to make a test program to demonstrate its use. If you'd like just the library to try to feel your way through it then PM Me
Posts: 369
Joined: Nov 2006
Reputation:
0
Allright,
I just registered my library at sourceforge under the name ScraperXML waiting for approval , as soon as they ok it, i'm going to have it up there
I'm still not happy with a few of the work-arounds i used for settings, i couldn't quite understand how XBMC knows when and how to send those settings to the scraper process, but the way i implemented it is to have a persistent XMLElement in the ScraperParser, that the program implementing it can allow the settings to be set, and then sent to the scraper parser, when the scraper parser comes across the request for info $INFO[whateversetting.@id] it requests that setting's value from the persistent xmlElement.
I think XBMC pulls that info from a sqllite db, right? If that's the case my work-arounds should be decent enough to substitute.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
xbmc has a general class that parses the settings into its structures. it can parse several xml blocks and concate them. when we want to save the settings, we ask the class to regenerate the xml. it will of course stick everything in a single tag.
this is also exactly how the other chains works. we parse several <details> blocks
Posts: 369
Joined: Nov 2006
Reputation:
0
2009-05-10, 13:04
(This post was last modified: 2009-05-10, 13:08 by Nicezia.)
Is the default action for expression repeat "yes" or "no" ?
oops nevermind