Bug 376470 - Title is not refreshed when read again metadata from file is launched [patch]
Summary: Title is not refreshed when read again metadata from file is launched [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 5.4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-14 08:16 UTC by Dav
Modified: 2017-08-13 07:38 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0


Attachments
titleLanguage.patch (2.12 KB, patch)
2017-02-15 07:08 UTC, Maik Qualmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dav 2017-02-14 08:16:56 UTC
Hello,

I think the title is not refreshed when we execute "Read again metadata from file" from the Item menu.

Step to reproduce:

- Open digikam, select a picture, open the right panel "caption" > "description".
- Set the title 'title original" on this picture for the french locale using digikam.
- Click Save metadata on files
- Confirm that this title has been set in picture using an external tool, such as exiftool (exiftool -XMP:Title-FR-fr /path/to/picture.jpg).
- Set a new value for this title using an external tool (by running exiftool -XMP:Title-FR-fr="new title" /path/to/picture.jpg)
- Confirm that this title has really been set in this pictures metadata by using  the previous command (exiftool -XMP:Title-FR-fr /path/to/picture.jpg)
- Under digikam, select the picture and refresh its metadata from the menu Item > Read again metadata from file.
- See that from the right panel / caption / title, title has not changed.

Expected results:
The title field should display "new title"
Comment 1 caulier.gilles 2017-02-14 08:21:49 UTC
Please check again with current Linux AppImage 5.5.0 pre version where some improvements have been done.

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Gilles Caulier
Comment 2 Maik Qualmann 2017-02-15 07:08:23 UTC
Created attachment 104039 [details]
titleLanguage.patch

If "x-default" language not found use the first language if available in the titles map.

Maik
Comment 3 domian.h 2017-04-06 16:55:05 UTC
The function "Reread Metadata From Imagages" does not work in general. I tried this function via three different ways
1 - item -> Feread Metadata From Images
2 - Album -> Reread... and
3 - Tools -> Maintenance -> check Albums, check Sync Metadata and Database, Sync Direction: From image metadata to database

Every time the procedure is done in 0 seconds and nothing has changed.

I tried it on Ubuntu 16.04 and on Win 10. Both times with Digikam 5.5.0.
Comment 4 Maik Qualmann 2017-04-06 17:19:42 UTC
Yes, this is a bug in digiKam-5.5.0. Is already fixed for digiKam-5.6.0. Use Beta AppImage from this download:

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Maik
Comment 5 domian.h 2017-04-09 10:36:59 UTC
Thank you! Works great.

It is possible to include the subfolders of an album to the function Ablum -> Reread Metadata from Images?
Comment 6 caulier.gilles 2017-08-13 07:38:49 UTC
Domian,

>It is possible to include the subfolders of an album to the function Ablum -> >Reread Metadata from Images?

This is an other topic, which must refer to a new bugzilla entry. Please create a new report.

Gilles Caulier