Here is a patch to add Event passing to tvtime examples below for local_conf.py Later Jonathan On 2006-08-19 13:20:32 -0500 John Molohan <[EMAIL PROTECTED]> wrote:
Also if anyone is interested I patched 1.5.4 so events such as EVENTS['tv']['VOL+'] = Event(TV_SEND_TVTIME_CMD, arg='MIXER_UP 2') EVENTS['tv']['VOL-'] = Event(TV_SEND_TVTIME_CMD, arg='MIXER_DOWN 2') EVENTS['tv']['MUTE'] = Event(TV_SEND_TVTIME_CMD, arg='MIXER_TOGGLE_MUTE') EVENTS['tv']['MENU'] = Event(TV_SEND_TVTIME_CMD, arg='SHOW_MENU') EVENTS['tv']['EXIT'] = Event(TV_SEND_TVTIME_CMD, arg='MENU_EXIT') EVENTS['tv']['SELECT'] = Event(TV_SEND_TVTIME_CMD, arg='MENU_ENTER') EVENTS['tv']['UP'] = Event(TV_SEND_TVTIME_CMD, arg='MENU_UP') EVENTS['tv']['DOWN'] = Event(TV_SEND_TVTIME_CMD, arg='MENU_DOWN') can be used. Thanks Jonathan IsomAll patches are welcome :)
<freevo-tvtimecmd.patch>
diff -uprN freevo-1.5.4/src/event.py freevo-1.5.4-modified/src/event.py --- freevo-1.5.4/src/event.py 2005-10-16 04:18:50.000000000 -0500 +++ freevo-1.5.4-modified/src/event.py 2006-08-20 10:15:48.206949000 -0500 @@ -152,6 +152,7 @@ DIRECTORY_CHANGE_DISPLAY_TYPE = Event('D TV_START_RECORDING = Event('TV_START_RECORDING') TV_CHANNEL_UP = Event('TV_CHANNEL_UP') TV_CHANNEL_DOWN = Event('TV_CHANNEL_DOWN') +TV_SEND_TVTIME_CMD = Event('TV_SEND_TVTIME_CMD') # # Global playing events diff -uprN freevo-1.5.4/src/tv/plugins/tvtime.py freevo-1.5.4-modified/src/tv/plugins/tvtime.py --- freevo-1.5.4/src/tv/plugins/tvtime.py 2005-10-16 04:18:50.000000000 -0500 +++ freevo-1.5.4-modified/src/tv/plugins/tvtime.py 2006-08-20 10:13:12.166949000 -0500 @@ -568,6 +568,10 @@ class TVTime: os.system('tvtime-command display_message \'%s\'' % event.arg) return True + elif event == em.TV_SEND_TVTIME_CMD: + os.system('tvtime-command %s' % event.arg) + return True + elif event in em.INPUT_ALL_NUMBERS: self.app.write('CHANNEL_%s\n' % event.arg)
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users