Ticket #7704 (closed defect: fixed)
Opened 2 years ago
Last modified 2 years ago
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
Change History
comment:2 in reply to: ↑ 1 Changed 2 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 2 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 2 years ago by Randy Rossi <randy.rossi@…>
- Attachment networkcontrol.patch added
PATCH to networkcontrol.cpp
comment:4 Changed 2 years ago by cpinkham
- Owner changed from ijr to cpinkham
- Status changed from new to assigned
comment:5 Changed 2 years ago by cpinkham
- Status changed from assigned to closed
- Resolution set to fixed
(In [23394]) Fix an issue with the NetworkControl? "query livetv" command when used without a specific chanid.
Fixes #7704 using patch by Randy Rossi.

Sorry, neglected to put in my e-mail.