Skip to content

Commit

Permalink
ApplyRecordRecGroupChange: replace chanid/starttime with recordedid
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Meek committed Apr 10, 2023
1 parent 09f0865 commit 0b4b754
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mythtv/libs/libmythtv/recordinginfo.cpp
Expand Up @@ -685,12 +685,10 @@ void RecordingInfo::ApplyRecordRecGroupChange(const QString &newrecgroup)
query.prepare("UPDATE recorded"
" SET recgroup = :RECGROUP, "
" recgroupid = :RECGROUPID "
" WHERE chanid = :CHANID"
" AND starttime = :START ;");
" WHERE recordedid = :RECORDEDID");
query.bindValue(":RECGROUP", null_to_empty(newrecgroup));
query.bindValue(":RECGROUPID", newrecgroupid);
query.bindValue(":START", m_recStartTs);
query.bindValue(":CHANID", m_chanId);
query.bindValue(":RECORDEDID", m_recordedId);

if (!query.exec())
MythDB::DBError("RecGroup update", query);
Expand Down

0 comments on commit 0b4b754

Please sign in to comment.