From 0990aaa7ff6d35780b8cad838bf458a630e63e5a Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 26 Jun 2024 09:58:19 +0200 Subject: 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. --- movieinfopage.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'movieinfopage.h') 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 #include 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; -- cgit v1.2.3-70-g09d2