diff options
author | Hubert Figuière <hub@figuiere.net> | 2023-08-25 08:53:32 -0400 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2023-08-25 08:53:32 -0400 |
commit | b0be067314645f310fe7fe66502bb8520fe24b7f (patch) | |
tree | 393ee033032f8210d0ceda12684fe48b36f34a8d | |
parent | 2dc375087af02dd35df2f42b4ce71bb56099fc1d (diff) |
gentest: added the model
-rw-r--r-- | libopenraw-testing/src/bin/gentest.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libopenraw-testing/src/bin/gentest.rs b/libopenraw-testing/src/bin/gentest.rs index fd1b6f8..7143256 100644 --- a/libopenraw-testing/src/bin/gentest.rs +++ b/libopenraw-testing/src/bin/gentest.rs @@ -50,8 +50,14 @@ pub fn main() { .file_name() .map(|s| s.to_string_lossy()) .unwrap_or_default(); + let model = rawfile + .metadata_value(&"Exif.Image.Model".to_string()) + .as_ref() + .and_then(libopenraw::metadata::Value::string) + .map(|s| s.trim_end().to_string()) + .unwrap_or_else(|| "Unknown".to_string()); let name = format!( - "{} - {filename}", + "{} - {model} - {filename}", <Type as Into<String>>::into(rawfile.type_()) ); |