Update added with the modified date in comics added before the new metadata refactoring

This commit is contained in:
Luis Ángel San Martín
2023-06-06 21:45:20 +02:00
parent 8520a29a05
commit 21e237ccf9
3 changed files with 18 additions and 0 deletions

View File

@ -594,6 +594,11 @@ void LibraryCreator::update(QDir dirS)
QString path = QDir::cleanPath(fileInfoS.absoluteFilePath()).remove(_source);
#endif
replaceComic(path, fileInfoS, comicDB);
} else if (added == 0) { // this file was added before `added` existed on the db, `added` will be updated to match the modified date so future modifications can be detected.
if (lastModified > 0) {
comicDB->info.added = lastModified;
DBHelper::updateAdded(&(comicDB->info), _database);
}
}
}
i++;