+ if (s && g_strcmp0("Unknown (2822)", s) != 0) {
+ gchar* pos = g_strstr_len(s, -1, " ");
+ //cout << pos << endl;
+ if (pos) {
+ //cout << "S length: " << strlen(s) << "POS length: " << strlen(pos) << endl;
+ lensId = g_strndup(s, strlen(s) - strlen(pos));
+ }
+ len = g_utf8_strlen(lensId, -1);
+ }
+ }
+
+ if (!lensId || g_strcmp0("Unknown (2822)", lensId) == 0 || len < 1) {
+ const gchar* s = (gchar *)g_hash_table_lookup(exif_tags, "LensModel");