summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'newmoviewizard.cpp')
-rw-r--r--newmoviewizard.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/newmoviewizard.cpp b/newmoviewizard.cpp
index f6f5cc0..1c84f5f 100644
--- a/newmoviewizard.cpp
+++ b/newmoviewizard.cpp
@@ -257,7 +257,7 @@ void NewMovieWizard::accept(){
//genres done!
//now handle metadata
QSqlQuery insertMetadataQ(db);
- insertMetadataQ.prepare("INSERT INTO metadata (iseriespart_id, sireleaseyear, tsourcemedium, tsubject, treleasegroup, tencoderopts, tcomment, sipasses, dadded) VALUES(:pid, :rely, :source, :sub, :group, :encopts, :comment, :passes, :added)");
+ insertMetadataQ.prepare("INSERT INTO metadata (iseriespart_id, sireleaseyear, tsourcemedium, tsubject, treleasegroup, tencoderopts, tcomment, sipasses) VALUES(:pid, :rely, :source, :sub, :group, :encopts, :comment, :passes)");
MovieMetadataPage *metadataPage = qobject_cast<MovieMetadataPage*>(page(3));
QList<QVariant> metadata = metadataPage->widget()->metadata();
insertMetadataQ.bindValue(":pid", seriesPartId);
@@ -268,7 +268,6 @@ void NewMovieWizard::accept(){
insertMetadataQ.bindValue(":encopts", metadata.at(ArchiveModel::EncoderOpts));
insertMetadataQ.bindValue(":comment", metadata.at(ArchiveModel::Comment));
insertMetadataQ.bindValue(":passes", metadata.at(ArchiveModel::Passes));
- insertMetadataQ.bindValue(":added", QDate::currentDate());
if(!insertMetadataQ.exec()){
db.rollback();
return;