Summary: | Feature request: update metadata from picture file if associated sidecar is deleted | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | MarcP <iwannaberich> |
Component: | Metadata-Sidecar | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | caulier.gilles, iwannaberich, metzpinguin |
Priority: | NOR | ||
Version First Reported In: | 7.5.0 | ||
Target Milestone: | --- | ||
Platform: | Flatpak | ||
OS: | All | ||
Latest Commit: | https://invent.kde.org/graphics/digikam/-/commit/4cfbcbdc0c87bd958f4fa3d2715cefd88932c02b | Version Fixed In: | 8.2.0 |
Sentry Crash Report: |
Description
MarcP
2021-12-17 16:22:43 UTC
In principle, this is already possible now, you just must not have set the modification date to always be set to the previous one. If the sidecar is no longer there, digiKam would find a different modification date and scan the file again. There is no indication in the database as to whether a sidecar exists. There is no other way to detect this in the start scan. Otherwise we would have to create a sidecar deletion option directly in digiKam. Maik But if the sidecar is deleted, but the original picture file is left untouched, its modification date won't change and digikam won't re-scan it, right? No, some time ago we added the detection of whether the sidecar was changed externally. We save the most recent modification date in the database, either from the sidecar or from the file. This allows us to recognize changes to both the file or the sidecar. So if the modification date is always reset to the previous one by digiKam or externally when there is a change and even the file and sidecar have the same date, we cannot detect any change during the scan. You only need to switch off the reading of sidecars and watch the terminal when it starts (debug variable enabled), digiKam will scan files that had a sidecar again. The same thing if you reactivate sidecar reading. Maik Git commit 4cfbcbdc0c87bd958f4fa3d2715cefd88932c02b by Maik Qualmann. Committed on 29/10/2023 at 19:04. Pushed by mqualmann into branch 'master'. fix sidecar check as depend on the update timestamp option FIXED-IN: 8.2.0 M +1 -1 NEWS M +0 -1 core/libs/database/collection/collectionscanner_scan.cpp https://invent.kde.org/graphics/digikam/-/commit/4cfbcbdc0c87bd958f4fa3d2715cefd88932c02b |