summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-08-10 08:20:52 +0200
committerArno <am@disconnect.de>2013-08-10 08:20:52 +0200
commit485e8ca24887b387b2a8f08a7561d2054651633b (patch)
tree95e7bf7e824c7d976027333b87f8a697f26b0ff9 /newmoviewizard.cpp
parentf26f8c0a1a569a1397c3dde1f3fd7d0d7795f1f6 (diff)
downloadSheMov-485e8ca24887b387b2a8f08a7561d2054651633b.tar.gz
SheMov-485e8ca24887b387b2a8f08a7561d2054651633b.tar.bz2
SheMov-485e8ca24887b387b2a8f08a7561d2054651633b.zip
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
Diffstat (limited to 'newmoviewizard.cpp')
-rw-r--r--newmoviewizard.cpp2
1 files changed, 1 insertions, 1 deletions
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()));