Posts: 6
Joined: Dec 2008
Reputation:
0
Hey
I'm just starting out and trying to make a plugin for myself on xbox, but I don't know where to start. All I want to do just now is list all of the files in a local directory (E:\Pics\), but can't figure out how to do that at all.
I know how to do some stuff after this (I think) but if someone could help me get started off I'dd really appreaciate it.
Thanx in advance
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
look at the plugin maker script in xbmc-scripting svn. you can get it with the svn installer from the sticky
Posts: 6
Joined: Dec 2008
Reputation:
0
aright, thanx man, I'll go have a look now, and hopefully be able to figure it out
Posts: 6
Joined: Dec 2008
Reputation:
0
don't mean to annoy ppl, but I've tried running that script, and it creates a video plugin, but when I try to run this plugin it just says no items, and returns to the plugin menu. but theres 2 videos in the folder its used, and its just a local folder, not a multipath.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
need more info, works fine here
Posts: 6
Joined: Dec 2008
Reputation:
0
OK, I tried it again just to make sure.
I created a folder - E:\Vids which has 2 files in it, 1.avi and 2.avi, and I made it a source
When I run the plugin from program plugins I choose videos and select the source, then it creates the plugin
now I go to videos > video plugins, and select the plugin. It comes up for a second as "Loading directory - 0 items retrieved" and then closes, leaving me back in the plugin options instead of with a list of the (2) files. Am i doing something wrong?
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
doesn't sound like it.
check your log and check the scripts debug window. "I" on the keyboard
Posts: 6
Joined: Dec 2008
Reputation:
0
I'll try the debug log in just a minute, but first - I'm doing it on xbox - does that make a difference to it, or should this still work on xbox?
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
yes it should, i tested on windows, but xbox always works. make sure you are upto date xbmc.