39 lines
1.2 KiB
XML
39 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
<id>{{ opds_id }}</id>
|
|
<title>{{ opds_title | e }}</title>
|
|
<link rel="search"
|
|
href="{{ opds_osd | e }}"
|
|
type="application/opensearchdescription+xml"/>
|
|
{%- for d in dirs %}
|
|
<entry>
|
|
<id>{{ d.opds_id }}</id>
|
|
<title>{{ d.name | e }}</title>
|
|
<link rel="subsection"
|
|
href="{{ d.href | e }}"
|
|
type="application/atom+xml;profile=opds-catalog"/>
|
|
<updated>{{ d.iso8601 }}</updated>
|
|
</entry>
|
|
{%- endfor %}
|
|
{%- for f in files %}
|
|
<entry>
|
|
<id>{{ f.opds_id }}</id>
|
|
<title>{{ f.name | e }}</title>
|
|
<updated>{{ f.iso8601 }}</updated>
|
|
<link rel="http://opds-spec.org/acquisition"
|
|
href="{{ f.href | e }}"
|
|
type="{{ f.mime }}"/>
|
|
{%- if f.jpeg_thumb_href != None %}
|
|
<link rel="http://opds-spec.org/image/thumbnail"
|
|
href="{{ f.jpeg_thumb_href | e }}"
|
|
type="image/jpeg"/>
|
|
{%- endif %}
|
|
{%- if f.jpeg_thumb_href_hires != None %}
|
|
<link rel="http://opds-spec.org/image"
|
|
href="{{ f.jpeg_thumb_href_hires | e }}"
|
|
type="image/jpeg"/>
|
|
{%- endif %}
|
|
</entry>
|
|
{%- endfor %}
|
|
</feed>
|