From 485e8ca24887b387b2a8f08a7561d2054651633b Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 10 Aug 2013 08:20:52 +0200 Subject: Fix issues with movie duration * cast from double to int to insert seconds into the database (newmoviewizard.cpp) * update the database with the duration if the movie is local and we don't have a duration --- newmoviewizard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newmoviewizard.cpp') diff --git a/newmoviewizard.cpp b/newmoviewizard.cpp index 72b7d1e..9c12dca 100644 --- a/newmoviewizard.cpp +++ b/newmoviewizard.cpp @@ -128,7 +128,7 @@ void NewMovieWizard::accept(){ int type = fData.value(WizardTreeModel::FileType).toInt(); if(type == ArchiveFilesModel::Movie){ QVariantMap m = Helper::ffmpegData(fullPath); - secs = m.value("duration").toInt(); + secs = m.value("duration").toDouble(); }else{ QPixmap pix(fullPath); picSize = QString("%1x%2").arg(QString::number(pix.width())).arg(QString::number(pix.height())); -- cgit v1.2.3-70-g09d2