OPDS Publisher Indexing

This commit is contained in:
DarkSir23 2017-11-01 10:24:30 -04:00 committed by evilhero
parent 23bc8fc972
commit 2b040648bc
2 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@
linktitle = ' title="%s"' % link['title']
%>
<link rel="${link['rel']}" href="${link['href']}" type="${link['type']}"${linktitle}/>
%endfor
%for entry in opds['entries']:
<entry>

View File

@ -75,7 +75,7 @@ class OPDS(object):
if isinstance(self.data, basestring):
return self.data
else:
cherrypy.response.headers['Content-Type'] = "application/atom+xml"
cherrypy.response.headers['Content-Type'] = "text/xml"
return serve_template(templatename="opds.html", title=self.data['title'], opds=self.data)
else:
return self.data