Get date taken from time digitized
Used as the fallback if the original data-time isn't available. Original commit message: metadata: use exiftool as a fallback for files not yet supported by exiv2 (e.g cr3) (cherry picked from commit bdcebdecef8cca82b0d8ad7a24d267308b12e04d)
This commit is contained in:
committed by
Lawrence Lee
parent
25d67c12c1
commit
e3f3b8ae91
@@ -309,6 +309,9 @@ FramesData::FramesData(const Glib::ustring &fname) :
|
||||
else if (find_exif_tag("Exif.Photo.DateTimeOriginal")) {
|
||||
datetime_taken = pos->print(&exif);
|
||||
}
|
||||
else if (find_exif_tag("Exif.Photo.DateTimeDigitized")) {
|
||||
datetime_taken = pos->print(&exif);
|
||||
}
|
||||
if (sscanf(datetime_taken.c_str(), "%d:%d:%d %d:%d:%d", &time.tm_year, &time.tm_mon, &time.tm_mday, &time.tm_hour, &time.tm_min, &time.tm_sec) == 6) {
|
||||
time.tm_year -= 1900;
|
||||
time.tm_mon -= 1;
|
||||
|
Reference in New Issue
Block a user