command line: fix recollq to compute title-or-filename now that filename is not used as title by default any more
This commit is contained in:
parent
80fb2f553c
commit
61042ec16d
@ -355,12 +355,16 @@ int recollq(RclConfig **cfp, int argc, char **argv)
|
|||||||
if (op_flags & OPT_b) {
|
if (op_flags & OPT_b) {
|
||||||
cout << doc.url << endl;
|
cout << doc.url << endl;
|
||||||
} else {
|
} else {
|
||||||
|
string titleorfn = doc.meta[Rcl::Doc::keytt];
|
||||||
|
if (titleorfn.empty())
|
||||||
|
titleorfn = doc.meta[Rcl::Doc::keyfn];
|
||||||
|
|
||||||
char cpc[20];
|
char cpc[20];
|
||||||
sprintf(cpc, "%d", doc.pc);
|
sprintf(cpc, "%d", doc.pc);
|
||||||
cout
|
cout
|
||||||
<< doc.mimetype << "\t"
|
<< doc.mimetype << "\t"
|
||||||
<< "[" << doc.url << "]" << "\t"
|
<< "[" << doc.url << "]" << "\t"
|
||||||
<< "[" << doc.meta[Rcl::Doc::keytt] << "]" << "\t"
|
<< "[" << titleorfn << "]" << "\t"
|
||||||
<< doc.fbytes << "\tbytes" << "\t"
|
<< doc.fbytes << "\tbytes" << "\t"
|
||||||
<< endl;
|
<< endl;
|
||||||
if (op_flags & OPT_m) {
|
if (op_flags & OPT_m) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user