Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
Well the drop and go functionality isnt there yet but this seems pretty solid for the core. I agree with having a special location although maybe the categories should be more open ended.
q:\plugins maybe? People might get confused between 'scripts' and 'mediascripts'.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Thanks Unbehagen for your efforts.
Q:\plugins works fine for me, though perhaps in userdata might be a good idea? I think we also need some way to determine what type of media they serve, and a subfolder structure may well be the way to do that.
As for "drop and go" functionality, we can easily have the Add Source dialog select a python source directly.
One thing I'm a little concerned about is the "parent folder" stuff that is sometimes performed in XBMC - this takes a URL and tries to determine the parent URL. This ofcourse is tricky in this case unless the arguments parsed in are the folder structure. i.e. simply remove an argument to get to the parent dir.
Your thoughts on this would be welcome.
Cheers,
Jonathan
Posts: 347
Joined: Jul 2007
Reputation:
4
Regarding drag'n'drop functionality: We can just add a handler that lists that directory if you call it with an empty script name (python:// url). Maybe we can just borrow the code from the scripts gui.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
That is the plan, yes.
Any thoughts on the parent folder determining? The simple way would be one argument per level. It's not a huge priority - most things work with it just fine, particularly if we URL encode the path to the script. At least then the usual "search for /" stuff will kick it back to the python:// URL. URL encoding the path to the script may be a pain in the arse to do from the scripts side of things though?
Cheers,
Jonathan
Posts: 347
Joined: Jul 2007
Reputation:
4
I don't really understand that parent folder problem... If I press back on the remote, it jumps back one step in the "virtual" folder tree..I'm on IRC, maybe we can talk there if you have time.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
Unbehagen, that did it. I misunderstood what the source had to be.
Posts: 347
Joined: Jul 2007
Reputation:
4
Looks neat! I'm just porting the TVLinks script...
I'll look at the bug afterwards.
There are still some parsing issues I guess. The URL always has to have a question mark at the end it seems, even if no parameters are supplied..
Could you tell me how you do the windows build? Even with a debug bios, finding bugs sucks!
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
it's in tools/win32. I think you can trace a release window build from VS2003
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Just load up the XBMC_PC solution (tools/Win32) and build away.
Run the run_me_first.bat script (modified so that it mounts things in the correct location if necessary) and you're all good.
I'm on IRC now to discuss the parentpath thing - it's not a major issue, but is something that could turn around and bite us later.