--- a/src/python/recoll/pyrecoll.cpp
+++ b/src/python/recoll/pyrecoll.cpp
@@ -311,8 +311,6 @@
case 'f':
if (!key.compare(Rcl::Doc::keyfs)) {
value = self->doc->fbytes;
- } else if (!key.compare(Rcl::Doc::keyfn)) {
- value = self->doc->utf8fn;
} else if (!key.compare(Rcl::Doc::keyfs)) {
value = self->doc->fbytes;
} else if (!key.compare(Rcl::Doc::keyfmt)) {
@@ -351,11 +349,11 @@
value = self->doc->dbytes.empty() ? self->doc->fbytes :
self->doc->dbytes;
}
-
- break;
- default:
+ break;
+ }
+
+ if (value.empty())
value = self->doc->meta[key];
- }
LOGDEB(("Doc_getattr: [%s] (%s) -> [%s]\n",
name, key.c_str(), value.c_str()));