regluit/api/templates/opds.xml

48 lines
2.2 KiB
XML

<feed xmlns:dcterms="http://purl.org/dc/terms/" xmlns:opds="http://opds-spec.org/"
xmlns="http://www.w3.org/2005/Atom"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.kbcafe.com/rss/atom.xsd.xml">
<title>Unglue.it Catalog</title>
<id>https://unglue.it{% url 'opds' %}</id>
<updated>2014-06-13T21:48:34Z</updated>
<author>
<name>unglue.it</name>
<uri>https://unglue.it/</uri>
</author>
<link rel="start" href="https://unglue.it{% url 'opds' %}" type="application/atom+xml;profile=opds-catalog;kind=navigation" />
<link href="{{ feed.feed_path }}/?order_by=popular"
rel="http://opds-spec.org/featured"
type="application/atom+xml;profile=opds-catalog;kind=acquisition" />
<link href="{{ feed.feed_path }}/?order_by=popular"
rel="http://opds-spec.org/featured"
type="application/atom+xml;profile=opds-catalog;kind=acquisition" />
<entry>
<title>{{ feed.title }} - Popular</title>
<id>https://unglue.it{% url 'opds_acqusition' feed.feed_path %}/?order_by=popular</id>
<updated>{{ feed.updated }}</updated>
<link href="{{ feed.feed_path }}/?order_by=popular"
rel="http://opds-spec.org/sort/popular"
type="application/atom+xml;profile=opds-catalog;kind=acquisition" />
<content type="text">{{ feed.description }} - ordered by popularity</content>
</entry>
<entry>
<title>{{ feed.title }} - New</title>
<id>https://unglue.it{% url 'opds_acqusition' feed.feed_path %}/?order_by=newest</id>
<updated>{{ feed.updated }}</updated>
<link href="{{ feed.feed_path }}/?order_by=newest"
rel="http://opds-spec.org/sort/new"
type="application/atom+xml;profile=opds-catalog;kind=acquisition" />
<content type="text">{{ feed.description }} - ordered by newest</content>
</entry>
{% for feed in feeds %}
<entry>
<title>{{ feed.title }}</title>
<id>https://unglue.it{% url 'opds_acqusition' feed.feed_path %}</id>
<updated>{{ feed.updated }}</updated>
<link href="{% url 'opds_acqusition' feed.feed_path %}"
rel="subsection"
type="application/atom+xml;profile=opds-catalog;kind=acquisition" />
<content type="text">{{ feed.description }}</content>
</entry>
{% endfor %}
</feed>