mirror of
https://github.com/9001/copyparty.git
synced 2026-06-19 12:42:51 -06:00
tested with Moon Reader and Koreader; based on: https://specs.opds.io/opds-1.2#3-search https://github.com/koreader/koreader/pull/7380 Signed-off-by: Brandon Philips <brandon@ifup.org>
35 lines
1.1 KiB
XML
35 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
<link rel="search"
|
|
href="{{ opds_osd | e }}"
|
|
type="application/opensearchdescription+xml"/>
|
|
{%- for d in dirs %}
|
|
<entry>
|
|
<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>
|
|
<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>
|