DOH

In my original post I initialized my channel changer plug-in, in local_conf.py, like so:
# plugin for ir blasting for channel change
plugin_ext_tuner = plugin.activate('tv.irsend_generic2',
args=('/usr/bin/irsend -d /dev/lircd1 SEND_ONCE 3100_2'))


As I mentioned this worked fine for for interactive TV watching but not for recordserver.

After perusing the code for Geert's suggestion (thanks BTW) I ran across this code in channels.py:

class FreevoChannels:

    def __init__(self):
        self.chan_index = 0

        if config.plugin_external_tuner:
            plugin.init_special_plugin(config.plugin_external_tuner)

Note: config.plugin_external_tuner!

On a hunch I changed my local_conf.py to read like this:

  # plugin for ir blasting for channel change
  plugin_external_tuner = plugin.activate('tv.irsend_generic2',
            args=('/usr/bin/irsend -d /dev/lircd1 SEND_ONCE 3100_2'))

Now it works.

I was assuming that the plugin would auto-magically register itself with recordserver somehow (it seemed to for TV watching). It appears the correct variable name is necessary too.



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to