* Trim the camera model from EXIF tags.
This commit is contained in:
parent
8634fec6ff
commit
0687d8f6d8
@ -605,7 +605,7 @@ GetImageMetadata(const char * path, char * name)
|
|||||||
strncpyt(model, exif_entry_get_value(e, b, sizeof(b)), sizeof(model));
|
strncpyt(model, exif_entry_get_value(e, b, sizeof(b)), sizeof(model));
|
||||||
if( !strcasestr(model, make) )
|
if( !strcasestr(model, make) )
|
||||||
snprintf(model, sizeof(model), "%s %s", make, exif_entry_get_value(e, b, sizeof(b)));
|
snprintf(model, sizeof(model), "%s %s", make, exif_entry_get_value(e, b, sizeof(b)));
|
||||||
m.creator = escape_tag(model, 1);
|
m.creator = escape_tag(trim(model), 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//DEBUG DPRINTF(E_DEBUG, L_METADATA, " * model: %s\n", model);
|
//DEBUG DPRINTF(E_DEBUG, L_METADATA, " * model: %s\n", model);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user