[mythtv-users] Event script oddities

Thomas Boehm mythtv-users at lists.boehmi.net
Sun Feb 6 18:06:23 UTC 2022


Hi all,

I use the following event scripts on my backend

EventCmdLivetvStarted: /usr/local/bin/mythtv_livetvstarted.sh %HOSTNAME%

EventCmdLivetvEnded: /usr/local/bin/mythtv_event_livetvstopped.sh %HOSTNAME%

EventCmdPlayStarted: /usr/local/bin/mythtv_event_playbackstarted.sh 
%HOSTNAME%

EventCmdPlayStopped: /usr/local/bin/mythtv_event_playbackstopped.sh 
%HOSTNAME%


EventCmdPlayStarted and EventCmdPlayStopped run fine and the %HOSTNAME% 
variable is filled correctly.

Starting thread for command 
'/usr/local/bin/mythtv_event_playbackstarted.sh desktop'
...
Starting thread for command 
'/usr/local/bin/mythtv_event_playbackstopped.sh desktop'


But the variable %HOSTNAME% is not filled, when the livetv scripts are 
executed. Then the literal string "%HOSTNAME%" is used instead.

Also, when livetv stops, both scripts for EventCmdLivetvEnded and 
EventCmdPlayStopped are executed, in both cases with %HOSTNAME% not filled.

Starting thread for command '/usr/local/bin/mythtv_livetvstarted.sh 
%HOSTNAME%'
...
Starting thread for command 
'/usr/local/bin/mythtv_event_playbackstopped.sh %HOSTNAME%'
Starting thread for command 
'/usr/local/bin/mythtv_event_livetvstopped.sh %HOSTNAME%'

Is this a known bug or am I doing something wrong?


Thanks

Thomas

mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v31.0+fixes.202202031417.4f7953f6ee~ubuntu20.04.1
MythTV Branch : fixes/31
Network Protocol : 91
Library API : 31.20200101-1
QT Version : 5.12.8
Options compiled in:
  linux profile use_hidesyms using_alsa using_oss using_pulse 
using_pulseoutput using_backend using_bindings_perl 
using_bindings_python using_bindings_php using_dvb using_firewire 
using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr 
using_ivtv using_joystick_menu using_libcec using_libcrypto using_gnutls 
using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg 
using_opengl using_egl using_qtwebkit using_qtscript using_qtdbus 
using_taglib using_v4l2 using_x11 using_libbluray_external using_xrandr 
using_profiletype using_systemd_notify using_systemd_journal 
using_bindings_perl using_bindings_python using_bindings_php 
using_freetype2 using_mythtranscode using_opengl using_egl using_vaapi 
using_nvdec using_vdpau using_ffmpeg_threads using_mheg using_libass 
using_libxml2 using_libmp3lame



More information about the mythtv-users mailing list