mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 03:44:40 +01:00
IGN:...
This commit is contained in:
parent
7bc0b414cb
commit
b3eb0dc196
1 changed files with 7 additions and 6 deletions
|
|
@ -153,12 +153,13 @@ def stanza(self):
|
|||
cherrypy.response.headers['Content-Type'] = 'text/xml'
|
||||
books = []
|
||||
for record in iter(self.db):
|
||||
authors = ' & '.join([i.replace('|', ',') for i in record[2].split(',')])
|
||||
books.append(self.STANZA_ENTRY.generate(authors=authors,
|
||||
record=record,
|
||||
port=self.opts.port,
|
||||
server=self.opts.hostname,
|
||||
).render('xml').decode('utf8'))
|
||||
if 'EPUB' in record['formats'].upper():
|
||||
authors = ' & '.join([i.replace('|', ',') for i in record[2].split(',')])
|
||||
books.append(self.STANZA_ENTRY.generate(authors=authors,
|
||||
record=record,
|
||||
port=self.opts.port,
|
||||
server=self.opts.hostname,
|
||||
).render('xml').decode('utf8'))
|
||||
return self.STANZA.generate(subtitle='', data=books).render('xml')
|
||||
|
||||
@expose
|
||||
|
|
|
|||
Loading…
Reference in a new issue