[mythtv] LiveTV start channel
R. G. Newbury
newbury at mandamus.org
Tue Jan 19 14:30:12 UTC 2016
On 01/18/2016 06:42 PM, John P Poet wrote:
> On Mon, Jan 18, 2016 at 3:38 PM R. G. Newbury <newbury at mandamus.org
> <mailto:newbury at mandamus.org>> wrote:
>
> On 01/18/2016 05:08 PM, John P Poet wrote:
> > While testing some new stuff, I was doing a lot of
> deleting/creating of
> > 'recorders'. During this process I ran into an issue starting LiveTV
> > because of recorder/channel miss-matches. The attached patch
> fixed it
> > for me. However, I am assuming that the code was written the way
> it was
> > for a reason. Can anyone that uses LiveTV take a look at this
> and see
> > if this is the correct solution?
>
> The intention is that the invocation of LIveTV will return you to the
> last channel watched... which may not actually be a good channel. I'm
> not sure that your patch will do the trick.
> To fix that I wrote a little script some years ago which just pokes
> 'good' values into the cardinput table, Just keep a console open and
> reset things as needed, then open LiveTV
>
> ##############################
> #!/bin/bash
> #reset-channel: to poke a good value into startchan
> #Two inputs: tuner to be re-set and channel to set to, defaults are
> allowed
> if [ $1 = '' ];
> then
> Tuner='5'
> Channel='43.1';
> fi
>
> if [ $1 != '' ];
> then
> Tuner=$1;
> fi
>
> if [ $2 = '' ];
> then
> Channel='43.1';
> elif [ $2 != '' ];
> then
> Channel=$2;
> fi
>
>
> # Tuner='5'
> # Channel='43.1';
> #
> echo "update cardinput set startchan = $Channel where cardid = $Tuner;"
> > tempfile
> echo "exit" >> tempfile
> mysql -u mythtv -pmythtv mythconverg < tempfile
>
> rm -f tempfile
> ********************
>
>
> Thanks Geoffrey. My patch does seem to work, but might not give you the
> last channel you were on. It does seem to always return a /valid/
> channel, though.
>
> John--
my workaround is not intended to return to the last channel: that is
likely the bad one you do not want! It allows you to start on a known
good channel. If your patch always returns a valid channel, we have both
reached the proper result.
Geoff
R. Geoffrey Newbury
More information about the mythtv-dev
mailing list