Ticket #311: mythtv.autoexpire-priority.diff

File mythtv.autoexpire-priority.diff, 913 bytes (added by Robert Tsai <rtsai1111>, 20 years ago)
  • libs/libmythtv/programinfo.cpp

     
    973973    GetProgramRecordingStatus();
    974974    record->setRecPriority(newrecpriority);
    975975    record->save();
     976
     977    MSqlQuery query(MSqlQuery::InitCon());
     978    query.prepare("UPDATE recorded"
     979            " SET recpriority = :RECPRIORITY"
     980            " WHERE recordid = :RECORDID"
     981            ";");
     982    query.bindValue(":RECPRIORITY", record->getRecPriority());
     983    query.bindValue(":RECORDID", record->getRecordID());
     984    if (!query.exec())
     985        MythContext::DBError("recpriority update", query);
    976986}
    977987
    978988/** \fn ProgramInfo::ApplyRecordRecGroupChange(const QString &newrecgroup)
     
    35243534    else
    35253535        return 0;
    35263536}
     3537
     3538/* vim: set expandtab tabstop=4 shiftwidth=4: */