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,6 +170,9 @@ class CSV_XML(CatalogPlugin):
|
|||||||
elif self.fmt == 'xml':
|
elif self.fmt == 'xml':
|
||||||
from lxml.builder import E
|
from lxml.builder import E
|
||||||
|
|
||||||
|
if getattr(opts, 'catalog_title', None):
|
||||||
|
root = E.calibredb(title=opts.catalog_title)
|
||||||
|
else:
|
||||||
root = E.calibredb()
|
root = E.calibredb()
|
||||||
for r in data:
|
for r in data:
|
||||||
record = E.record()
|
record = E.record()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user