Skip to content
Permalink
Browse files

Use short input name instead of sgroupid in some Scheduler output.

The schedule group ID isn't passed over the wire, so some output, like
from mythbackend --printsched would print useless zeros.  Also, clear
the input name when a program isn't going to be recorded.  This is
similar to how the other input information is already cleared.
  • Loading branch information...
gigem committed Oct 16, 2017
1 parent d9a040e commit bcd8b7c37c394da3d5d1d171b67217931330a8f4
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythtv/programs/mythbackend/scheduler.cpp
@@ -636,7 +636,7 @@ void Scheduler::PrintRec(const RecordingInfo *p, const QString &prefix)
.arg(p->GetChannelSchedulingID().leftJustified(7, ' ', true))
.arg(p->GetRecordingStartTime().toLocalTime().toString("dd hh:mm"))
.arg(p->GetRecordingEndTime().toLocalTime().toString("hh:mm"))
.arg(QString::number(p->sgroupid).rightJustified(2, ' '))
.arg(p->GetShortInputName().rightJustified(2, ' '))
.arg(QString::number(p->GetInputID()).rightJustified(2, ' '));
outstr += QString("%1 %2 %3")
.arg(toQChar(p->GetRecordingRuleType()))
@@ -1643,6 +1643,7 @@ void Scheduler::PruneRedundants(void)
{
p->SetInputID(0);
p->SetSourceID(0);
p->ClearInputName();
p->sgroupid = 0;
}

0 comments on commit bcd8b7c

Please sign in to comment.
You can’t perform that action at this time.