Bug 380341

Summary: Modified sidecar not rescanned
Product: [Applications] digikam Reporter: Jaakko Luttinen <jaakko.luttinen>
Component: Metadata-SidecarAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version: 5.4.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.0.0

Description Jaakko Luttinen 2017-05-30 04:27:10 UTC
I'm syncing my photo directory between two machines. If I write the metadata to the image files and enable "Rescan file when files are modified", changes in the metadata on one machine are automatically shown on the other machine. However, if I read and write metadata to sidecar files, this doesn't happen. I need to manually "Reread metadata from image". I would have expected that digikam notices modifications in both the image file and the sidecar file, but apparently "Rescan file when files are modified" doesn't apply to sidecar files, only to image files.

Settings: I've enabled "Read from sidecar files" and "Write to sidecar files (Write to XMP sidecar only)". Also, I've enabled "Rescan file when files are modified" and enabled all information to be written to the metadata.
Comment 1 Jaakko Luttinen 2017-10-29 10:02:46 UTC
Any news on this?
Comment 2 Maik Qualmann 2017-10-29 11:23:45 UTC
I can not see a simple solution at the moment. There is no information to the sidecar files in the database. So we do not know whether the file size or date has changed.

Maik
Comment 3 Maik Qualmann 2018-09-13 19:51:21 UTC
Git commit 9c77203fdc10cd59aa0ba645ab3fde7f774dbaf2 by Maik Qualmann.
Committed on 13/09/2018 at 19:47.
Pushed by mqualmann into branch 'master'.

store as modification date always the most recent from the image or the sidecar
Related: bug 397340, bug 398331, bug 339342
FIXED-IN: 6.0.0

M  +5    -2    NEWS
M  +14   -1    core/libs/database/collection/collectionscanner.cpp
M  +14   -1    core/libs/database/item/imagescanner.cpp

https://commits.kde.org/digikam/9c77203fdc10cd59aa0ba645ab3fde7f774dbaf2