Posts: 1,126
Joined: Mar 2012
Reputation:
37
MassIV
Skilled Skinner
Posts: 1,126
Hey guys,
I'm looking to do the following:
Onclick, open a "browse for source" to the user. (so not the add source dialog, but the browse function inside of it)
The user browses for the folder.
On clicking "ok"
Set the folder as source (obviously)
Set the content of the folder as the type that i specify in the xml.
Set the scraper (if not automatically set to default)
Set scan recursively
Set movies are in separate folders (if type is movies..).
So where can i find these commands? Or another way to do this?
[RELEASE] Metroid
[RELEASE] IrcChat
Posts: 1,514
Joined: Jul 2010
Reputation:
60
Trigger a script with your onclick that uses JSON-RPC in order to modify the GUISettings
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Posts: 1,126
Joined: Mar 2012
Reputation:
37
MassIV
Skilled Skinner
Posts: 1,126
Hey thanks for pointing me in the right direction. But this will be my first time trying to do that (or even looking at JSON).
Are there any good examples of how to use that? Tutorials (with xbmc instead of http) / other skins / plugins that make use of this?
[RELEASE] Metroid
[RELEASE] IrcChat
Posts: 17,859
Joined: Jul 2011
Reputation:
371
Don't think JSON-RPC allows that. Check the wiki for options
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
Are you adding tons of sources every day or why do you want to do it in one action? I may have a way but I don't think it makes much sense to add it to a skin.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
2012-08-07, 17:49
(This post was last modified: 2012-08-07, 17:51 by `Black.)
Ok, then I would wait if someone is willing to add the needed functionality to XBMC. You can only achieve it with dirty hacks at the moment. But I like the idea of a general wizard and I think this should be integrated natively.
Posts: 1,126
Joined: Mar 2012
Reputation:
37
MassIV
Skilled Skinner
Posts: 1,126
I would still be interested in the dirty hacks.
Just to get a proof of concept .zip for the skin up.
[RELEASE] Metroid
[RELEASE] IrcChat