midgetspy / service.xbmc.callbacks

Addon service for XBMC to call user defined scripts on specific callbacks such as player starts, stops, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

service.xbmc.callbacks

Calls a script whenever an event occurs in XBMC and pass it arguments to indicate what event has occurred. All invocations will have an event argument:

--event= PLAYING, PAUSED, RESUMED, STOPPED, IDLE, NOT_IDLE, SCREENSAVER_ACTIVATED, SCREENSAVER_DEACTIVATED, DATABASE_UPDATED

Additional arguments will be provided if the event name is PLAYING, PAUSED, RESUMED, or STOPPED:

--mediaType= MOVIE, MUSIC, EPISODE, VIDEO, TRAILER, UNKNOWN

If the media type is MOVIE, EPISODE, VIDEO, or TRAILER then the additional arguments will be provided:

--stereoscopicMode= 2D, HSBS

--aspectRatio= DEFAULT, 1.33, 1.37, 1.66, 1.78, 1.85, 2.20, 2.35, 2.40, 2.55, 2.76

The resources/lib folder contains an example of how to parse these arguments in python (and a batch file which can call the python file under windows).

About

Addon service for XBMC to call user defined scripts on specific callbacks such as player starts, stops, etc.

License:GNU General Public License v2.0


Languages

Language:Python 99.5%Language:Batchfile 0.5%