summaryrefslogtreecommitdiffstats
path: root/movieinfopage.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2024-06-26 09:58:19 +0200
committerArno <arno@disconnect.de>2024-06-26 09:58:19 +0200
commit0990aaa7ff6d35780b8cad838bf458a630e63e5a (patch)
treecaf92db6ed1a35f14f5a4e8ec4cff5793452d643 /movieinfopage.h
parentc7b0d2967acf2430aabfda4910e77f4cf4827f55 (diff)
downloadSheMov-0990aaa7ff6d35780b8cad838bf458a630e63e5a.tar.gz
SheMov-0990aaa7ff6d35780b8cad838bf458a630e63e5a.tar.bz2
SheMov-0990aaa7ff6d35780b8cad838bf458a630e63e5a.zip
Extract more metadata from original
If the metadata tag creation_time exists in the original, use it to determine the release year. To avoid calling ffprobe twice, do it on movieinfopage and pass the value along by a registered field.
Diffstat (limited to 'movieinfopage.h')
-rw-r--r--movieinfopage.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/movieinfopage.h b/movieinfopage.h
index 9d728d7..0407c33 100644
--- a/movieinfopage.h
+++ b/movieinfopage.h
@@ -8,6 +8,7 @@
#ifndef MOVIEINFOPAGE_H
#define MOVIEINFOPAGE_H
+#include <QDateTime>
#include <QWizardPage>
class WizardTreeModel;
@@ -18,6 +19,7 @@ class QLineEdit;
class QSortFilterProxyModel;
class QStringListModel;
class QCompleter;
+class QDateEdit;
class MovieInfoPage : public QWizardPage {
Q_OBJECT
@@ -37,7 +39,7 @@ class MovieInfoPage : public QWizardPage {
void guessOld(const QString &fullPath);
private slots:
- void extractTitle();
+ void extractMetadata();
void addOld();
void addFiles();
void removeFile();
@@ -51,6 +53,7 @@ class MovieInfoPage : public QWizardPage {
QLineEdit *mSubtitle;
QSpinBox *mSeriesNo;
QSpinBox *mQuality;
+ QDateEdit *mCreationDate;
WizardTreeModel *mFileModel;
SmTreeItem *mMoviesItem;
SmTreeItem *mCoversItem;