diff --git a/mythplugins/mytharchive/mytharchivehelper/main.cpp b/mythplugins/mytharchive/mytharchivehelper/main.cpp index 8189c06..745a3e6 100644 --- a/mythplugins/mytharchive/mytharchivehelper/main.cpp +++ b/mythplugins/mytharchive/mytharchivehelper/main.cpp @@ -774,7 +774,7 @@ int NativeArchive::exportRecording(QDomElement &itemNode, // add the recordedmarkup table QDomElement recordedmarkup = doc.createElement("recordedmarkup"); - query.prepare("SELECT chanid, starttime, mark, offset, type " + query.prepare("SELECT chanid, starttime, mark, data, type " "FROM recordedmarkup " "WHERE chanid = :CHANID and starttime = :STARTTIME;"); query.bindValue(":CHANID", chanID); @@ -785,7 +785,7 @@ int NativeArchive::exportRecording(QDomElement &itemNode, { QDomElement mark = doc.createElement("mark"); mark.setAttribute("mark", query.value(2).toString()); - mark.setAttribute("offset", query.value(3).toString()); + mark.setAttribute("data", query.value(3).toString()); mark.setAttribute("type", query.value(4).toString()); recordedmarkup.appendChild(mark); } @@ -1321,12 +1321,12 @@ int NativeArchive::importRecording(const QDomElement &itemNode, n = nodeList.item(x); QDomElement e = n.toElement(); query.prepare("INSERT INTO recordedmarkup (chanid, starttime, " - "mark, offset, type)" - "VALUES(:CHANID,:STARTTIME,:MARK,:OFFSET,:TYPE);"); + "mark, data, type)" + "VALUES(:CHANID,:STARTTIME,:MARK,:DATA,:TYPE);"); query.bindValue(":CHANID", chanID); query.bindValue(":STARTTIME", startTime); query.bindValue(":MARK", e.attribute("mark")); - query.bindValue(":OFFSET", e.attribute("offset")); + query.bindValue(":DATA", e.attribute("data")); query.bindValue(":TYPE", e.attribute("type"));