diff options
author | Arno <arno@disconnect.de> | 2024-06-26 09:58:19 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2024-06-26 09:58:19 +0200 |
commit | 0990aaa7ff6d35780b8cad838bf458a630e63e5a (patch) | |
tree | caf92db6ed1a35f14f5a4e8ec4cff5793452d643 /movieinfopage.h | |
parent | c7b0d2967acf2430aabfda4910e77f4cf4827f55 (diff) | |
download | SheMov-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.h | 5 |
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; |