mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1902702 [[Enhancement] Add catalog title to XML catalog](https://bugs.launchpad.net/calibre/+bug/1902702)
This commit is contained in:
parent
d52a9a074d
commit
d2c52b5b8e
@ -170,7 +170,10 @@ class CSV_XML(CatalogPlugin):
|
||||
elif self.fmt == 'xml':
|
||||
from lxml.builder import E
|
||||
|
||||
root = E.calibredb()
|
||||
if getattr(opts, 'catalog_title', None):
|
||||
root = E.calibredb(title=opts.catalog_title)
|
||||
else:
|
||||
root = E.calibredb()
|
||||
for r in data:
|
||||
record = E.record()
|
||||
root.append(record)
|
||||
|
Loading…
x
Reference in New Issue
Block a user