Ticket #311: mythtv.updaterecorded.diff
File mythtv.updaterecorded.diff, 1.7 KB (added by , 19 years ago) |
---|
-
libmythtv/programinfo.cpp
953 953 GetProgramRecordingStatus(); 954 954 record->setRecPriority(newrecpriority); 955 955 record->save(); 956 957 MSqlQuery query(MSqlQuery::InitCon());958 query.prepare("UPDATE recorded"959 " SET recpriority = :RECPRIORITY"960 " WHERE recordid = :RECORDID"961 ";");962 query.bindValue(":RECPRIORITY", record->getRecPriority());963 query.bindValue(":RECORDID", record->getRecordID());964 if (!query.exec())965 MythContext::DBError("recpriority update", query);966 956 } 967 957 968 958 /** \fn ProgramInfo::ApplyRecordRecGroupChange(const QString &newrecgroup) -
libmythtv/scheduledrecording.cpp
410 410 else 411 411 { 412 412 ConfigurationGroup::save(); 413 414 QString qstring = QString("UPDATE recorded" 415 " SET recpriority = %1" 416 ",recgroup = '%2'" 417 ",transcoder = %3" 418 ",timestretch = %4" 419 " WHERE recordid = %5" 420 ";") 421 .arg(getRecPriority()) 422 .arg(recgroup->getValue()) 423 .arg(transcoder->getValue().toInt()) 424 .arg(timestretchid->getValue().toFloat()) 425 .arg(getRecordID()) 426 ; 427 428 MSqlQuery query(MSqlQuery::InitCon()); 429 query.prepare(qstring); 430 if (!query.exec()) 431 MythContext::DBError("UPDATE recorded", query); 413 432 } 414 433 signalChange(getRecordID()); 415 434 }