summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael T. Dean <mdean@mythtv.org>2011-04-16 22:58:21 (GMT)
committer Michael T. Dean <mdean@mythtv.org>2011-04-16 22:58:21 (GMT)
commit0bbd75b72a2e4a0ac79662a4484797ccce4b37fe (patch)
tree88a73c6e74bab83dd502a603308e4bb078646bda
parent9ba3ece4a5cf3f41c53148b8192707b6107e5a40 (diff)
Sort recordings for bindings and MythArchive.
This change causes ProgramInfo::LoadFromRecorded() to always sort recordings according to starttime (descending) in 0.24-fixes (only). A better fix was committed to master, but due to the binary version and protocol version changes, can't be backported to 0.24-fixes. This approach will make the list more usable for MythArchive and bindings users, but without any version changes. Refs #9486.
-rw-r--r--mythtv/libs/libmyth/programinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mythtv/libs/libmyth/programinfo.cpp b/mythtv/libs/libmyth/programinfo.cpp
index f84d8c0..39fa480 100644
--- a/mythtv/libs/libmyth/programinfo.cpp
+++ b/mythtv/libs/libmyth/programinfo.cpp
@@ -4196,6 +4196,8 @@ bool LoadFromRecorded(
if (possiblyInProgressRecordingsOnly)
thequery += "WHERE r.endtime >= NOW() AND r.starttime <= NOW() ";
+ thequery += "ORDER BY r.starttime DESC ";
+
MSqlQuery query(MSqlQuery::InitCon());
query.prepare(thequery);