2010-05-24, 02:01
I've created a small script that I use to create the base framework for my video plugins. I know everyone has their own routine for creating plugins, but I thought this could be helpful in certain cases.
Also included is also my xbmceulator.py module. It is a simple module that stubs out the xbmc, xbmcplugin, and xbmcgui functions that I use in my plugins. This enables me to execute my plugin both from the command line and from within the XBMC interface without having to change the code each time. When troubleshooting from the command line, the standin xbmc modules simply print the list items to the console, so I can verify my URLs are being scraped correctly by using simple print statements.
The plugins and the scripts can be found here:
http://github.com/jbeluch/xbmc-video-plugin-generator
zip: http://github.com/jbeluch/xbmc-video-plu...all/master
tarball: http://github.com/jbeluch/xbmc-video-plu...all/master
git:
There's more detailed information in the README on the github page.
Also included is also my xbmceulator.py module. It is a simple module that stubs out the xbmc, xbmcplugin, and xbmcgui functions that I use in my plugins. This enables me to execute my plugin both from the command line and from within the XBMC interface without having to change the code each time. When troubleshooting from the command line, the standin xbmc modules simply print the list items to the console, so I can verify my URLs are being scraped correctly by using simple print statements.
The plugins and the scripts can be found here:
http://github.com/jbeluch/xbmc-video-plugin-generator
zip: http://github.com/jbeluch/xbmc-video-plu...all/master
tarball: http://github.com/jbeluch/xbmc-video-plu...all/master
git:
Code:
git clone git://github.com/jbeluch/xbmc-video-plugin-generator.git
There's more detailed information in the README on the github page.