Ticket #10138: recstatus.patch

File recstatus.patch, 1.3 KB (added by [R] <ginsu.squirrel@…>, 12 years ago)
  • mythtv/libs/libmythtv/mythsystemevent.cpp

    diff --git a/mythtv/libs/libmythtv/mythsystemevent.cpp b/mythtv/libs/libmythtv/mythsystemevent.cpp
    index 1a4c261..988d231 100644
    a b void MythSystemEventHandler::SubstituteMatches(const QStringList &tokens, 
    129129        // Check for some token names that we substitute one for one as
    130130        // %MATCH% type variables.
    131131        if ((*it == "CARDID") ||
     132            (*it == "RECSTATUS") ||
    132133            (*it == "HOSTNAME") ||
    133134            (*it == "SECS") ||
    134135            (*it == "SENDER") ||
    void SendMythSystemRecEvent(const QString msg, const RecordingInfo *pginfo) 
    321322{
    322323    if (pginfo)
    323324        gCoreContext->SendSystemEvent(
    324             QString("%1 CARDID %2 CHANID %3 STARTTIME %4")
     325            QString("%1 CARDID %2 CHANID %3 STARTTIME %4 RECSTATUS %5")
    325326                    .arg(msg).arg(pginfo->GetCardID())
    326327                    .arg(pginfo->GetChanID())
    327                     .arg(pginfo->GetRecordingStartTime(ISODate)));
     328                    .arg(pginfo->GetRecordingStartTime(ISODate))
     329                    .arg(pginfo->GetRecordingStatus()));
    328330    else
    329331        LOG(VB_GENERAL, LOG_ERR, LOC + "SendMythSystemRecEvent() called with "
    330332                                       "empty RecordingInfo");