Plugin creation help
#1
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
Reply
#2
look at the plugin maker script in xbmc-scripting svn. you can get it with the svn installer from the sticky
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
aright, thanx man, I'll go have a look now, and hopefully be able to figure it out
Reply
#4
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.
Reply
#5
need more info, works fine here
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#6
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?
Reply
#7
doesn't sound like it.

check your log and check the scripts debug window. "I" on the keyboard
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#8
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?
Reply
#9
yes it should, i tested on windows, but xbox always works. make sure you are upto date xbmc.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#10
OK, kewl, thanx for quick reply

I got the debug log, and upped the bit regarding the vids (its been on for a while, and the past few results were teh same things which is why I trimmed it.

http://pastebin.com/m42de56ce
Reply

Logout Mark Read Team Forum Stats Members Help
Plugin creation help0