2017-10-31 03:40:49 +00:00
|
|
|
<feed xmlns="http://www.w3.org/2005/Atom"
|
|
|
|
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:opds="http://opds-spec.org/2010/catalog"
|
|
|
|
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
|
|
|
|
xmlns:dcterms="http://purl.org/dc/terms/">
|
|
|
|
<title>${opds['title']}</title>
|
|
|
|
<id>${opds['id']}</id>
|
|
|
|
<updated>${opds['updated']}</updated>
|
|
|
|
<author>
|
|
|
|
<name>Mylar Server</name>
|
|
|
|
<uri>https://github.com/evilhero/mylar</uri>
|
|
|
|
</author>
|
|
|
|
%for link in opds['links']:
|
2017-11-01 14:09:40 +00:00
|
|
|
<%
|
|
|
|
linktitle = ''
|
|
|
|
if 'title' in link:
|
|
|
|
linktitle = ' title="%s"' % link['title']
|
|
|
|
%>
|
|
|
|
<link rel="${link['rel']}" href="${link['href']}" type="${link['type']}"${linktitle}/>
|
2017-10-31 03:40:49 +00:00
|
|
|
%endfor
|
|
|
|
%for entry in opds['entries']:
|
|
|
|
<entry>
|
|
|
|
<title>${entry['title']}</title>
|
|
|
|
<id>${entry['id']}</id>
|
|
|
|
<updated>${entry['updated']}</updated>
|
|
|
|
<content type="text">${entry['content']}</content>
|
2017-11-01 14:37:49 +00:00
|
|
|
<link href="${entry['href']}" rel= "${entry['rel']}" type="application/atom+xml; profile=opds-catalog; kind=${entry['kind']}"/>
|
2017-10-31 03:40:49 +00:00
|
|
|
%if 'thumbnail' in entry:
|
|
|
|
<link href="${entry['thumbnail']}" type="image/png" rel="http://opds-spec.org/image/thumbnail"/>
|
|
|
|
%endif
|
|
|
|
</entry>
|
|
|
|
%endfor
|
|
|
|
</feed>
|