From dad9ec898f9d0059ac3c98c1b7a6ea5d8f3311dd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 31 Dec 2008 08:44:03 -0800 Subject: [PATCH] Implement #1502 (Add more metadata to calibredb's Stanza output) --- src/calibre/library/cli.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/cli.py b/src/calibre/library/cli.py index fa2785ddc1..a3d81156dd 100644 --- a/src/calibre/library/cli.py +++ b/src/calibre/library/cli.py @@ -76,13 +76,23 @@ STANZA_TEMPLATE='''\ ${record['title']} urn:calibre:${record['id']} - ${record['authors']} + ${record['author_sort']} ${record['timestamp'].strftime('%Y-%m-%dT%H:%M:%SZ')} -
${record['comments']}
+
+ + + ${f.capitalize()}:${unicode(', '.join(record[f]) if f=='tags' else record[f])}
+
+
+ +
+ ${record['comments']} +
+