Skip to content

Commit

Permalink
Expose recording rule last/next recorded and deleted dates in the UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Feb 15, 2012
1 parent 75b8683 commit 0ac5565
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mythtv/libs/libmythtv/recordingrule.cpp
Expand Up @@ -488,6 +488,17 @@ void RecordingRule::ToMap(InfoMap &infoMap) const
infoMap["searchtype"] = SearchTypeToString(m_searchType);
if (m_searchType != kNoSearch)
infoMap["searchforwhat"] = m_description;


if (m_nextRecording.isValid())
infoMap["nextrecording"] = MythDateTimeToString(m_nextRecording,
kDateFull | kAddYear);
if (m_lastRecorded.isValid())
infoMap["lastrecorded"] = MythDateTimeToString(m_lastRecorded,
kDateFull | kAddYear);
if (m_lastDeleted.isValid())
infoMap["lastdeleted"] = MythDateTimeToString(m_lastDeleted,
kDateFull | kAddYear);
}

void RecordingRule::UseTempTable(bool usetemp, QString table)
Expand Down

0 comments on commit 0ac5565

Please sign in to comment.