Opened 14 years ago

Closed 14 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@…> 14 years ago.
PATCH to networkcontrol.cpp

Download all attachments as: .zip

Change History (6)

comment:1 Changed 14 years ago by grhowes@…

Sorry, neglected to put in my e-mail.

comment:2 in reply to:  1 Changed 14 years ago by anonymous

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 Changed 14 years ago by randy.rossi@…

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);

}

Changed 14 years ago by Randy Rossi <randy.rossi@…>

Attachment: networkcontrol.patch added

PATCH to networkcontrol.cpp

comment:4 Changed 14 years ago by cpinkham

Owner: changed from Isaac Richards to cpinkham
Status: newassigned

comment:5 Changed 14 years ago by cpinkham

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.