Oh, sorry, you also have to tell the plugin not to init under the main interface:


    def __init__(self):
        # Disable this plugin if not loaded by record_server.
        if string.find(sys.argv[0], 'recordserver') == -1:
            return

s/recordserver/webserver

So, this is a little bit of a hack but it works. Dischi may want to make this a bit more natural.

-Rob

Rob Shortt wrote:
Aubin Paul wrote:

Ok, it's working, but it's clunky because the plugin is activated
under the OSD interface when it really should be in the webserver.py
helper.
Anyone want to hazard a guess on the best way to do this?


Sure. :)

I had to get recordserver to use plugins too and Dischi made a special plugin function for it:

plugin.init_special_plugin(config.plugin_record)

Where in local_conf.py I have:

plugin_record = plugin.activate('tv.ivtv_record')

You may be able to reference the plugin by name as well, I'm not sure atm.

HTH,
-Rob



------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to