Opened 16 years ago

Closed 16 years ago

#7704 closed defect (fixed)

Network Interface "query liveTV" returns an error instead of expected listing

Reported by: anonymous Owned by: cpinkham
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.22-fixes
Severity: medium Keywords: liveTV, query, Network Interfaace
Cc: Ticket locked: no

Description

telnet into the Network Interface as so (your frontend address will vary): telnet 192.168.0.15 6546 At the prompt, type in "query liveTV" Expected result: a list of TV shows being broadcast at the moment. Actual result: "ERROR: Unable to retrieve current schedule list."

strangely, "query liveTV 1051" does work for me.

So the bug is probably in the SQL query in the QString NetworkControl::listSchedule(const QString& chanID) const routine of networkcontrol.cpp

Attachments (1)

networkcontrol.patch (573 bytes ) - added by Randy Rossi <randy.rossi@…> 16 years ago.
PATCH to networkcontrol.cpp

Download all attachments as: .zip

Change History (6)

comment:1 by grhowes@…, 16 years ago

Sorry, neglected to put in my e-mail.

in reply to:  1 comment:2 by anonymous, 16 years ago

Replying to grhowes@…:

Sorry, neglected to put in my e-mail.

In addition to this bug, the 'play program CHANID yyyy-mm-ddThh:mm:ss' does not work either. It just brings you to the watch recordings screen.

comment:3 by randy.rossi@…, 16 years ago

There is as missing guard around the binding of :CHANID which depends on chanID not being empty. It should be this:

if (!chanID.isEmpty()) {

query.bindValue(":CHANID", chanID);

}

by Randy Rossi <randy.rossi@…>, 16 years ago

Attachment: networkcontrol.patch added

PATCH to networkcontrol.cpp

comment:4 by cpinkham, 16 years ago

Owner: changed from Isaac Richards to cpinkham
Status: newassigned

comment:5 by cpinkham, 16 years ago

Resolution: fixed
Status: assignedclosed

(In [23394]) Fix an issue with the NetworkControl "query livetv" command when used without a specific chanid.

Fixes #7704 using patch by Randy Rossi.

Note: See TracTickets for help on using tickets.