How to preload script?
#1
I'm relatively new to XBMC and python scripting and have few questions:

For my setup I wrote some script which handles IPTV from some provider.
It is about 40% of usage for my box (gentoo+XBMC). So, I add button on home screen for it, but, script deals with dynamic links, authorizations etc, so, when I invoke script, it always take some time, to load python, then to deal with authorization etc. So, my questions are simple:

1) Is it possible to preload plugin at start of XBMC and keep it running?
2) Is it possible to deal only with one instance of plugin? So every time when I go to this plugin, XBMC goes to the same instance of plugin, previously invoked.
3) and correspondently, it doesn't unload plugin when I exit back to home/somewhere else.

I also need script to keep one thread running in background, to periodically update EPG.

The ideal usage can be like this:
On boot XBMC load class, class create a thread, and every time when I go to this script, it invoke methods of the same static instance of the class.
Is it possible?
Reply

Logout Mark Read Team Forum Stats Members Help
How to preload script?0