Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sphery committed Apr 16, 2011
1 parent 9ba3ece commit 0bbd75b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmyth/programinfo.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 0bbd75b

Please sign in to comment.