[mythtv-users] Trying to watch livetv on 0.28 is starting on an invalid channel
R. G. Newbury
newbury at mandamus.org
Fri Jul 22 15:49:05 UTC 2016
On 07/22/2016 08:55 AM, Stephen Worthington wrote:
> On Mon, 18 Jul 2016 15:19:51 -0400, you wrote:
>
>> On 07/18/2016 09:05 AM, Brian J. Murrell wrote:
>>> So I updated to 0.28-fixes (04650e0). Most things seem to be working
>>> but when I try to watch LiveTV it seems like myth is trying to tune to
>>> an channel that is invalid for the input/source:
>>> Ideas?
>>
>> I haven't had to use this in a while, but it is useful to have around:
>> Geoff
>
> A much easier way of coding that script is:
>
> #!/bin/bash
> # reset-channel: takes 2 inputs
> Tuner=$1;
> Channel=$2;
>
> # example
> # Tuner='5'
> # Channel='43.1';
> #
>
> mysql -u mythtv -pmythtv mythconverg <<EOF
> update cardinput set startchan = $Channel where cardid = $Tuner;
> EOF
If you want to be exceedingly succinct (without concomitant
opportunities for obscure errors, then use this:
mysql -u mythtv -pmythtv mythconverg -e "update cardinput set startchan
= $Channel where cardid = $Tuner;"
Geoff
More information about the mythtv-users
mailing list