mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 17:40:31 +00:00
44284ea5fb
# Conflicts: # cps/translations/cs/LC_MESSAGES/messages.po # cps/translations/de/LC_MESSAGES/messages.po # cps/translations/es/LC_MESSAGES/messages.po # cps/translations/fi/LC_MESSAGES/messages.po # cps/translations/fr/LC_MESSAGES/messages.po # cps/translations/hu/LC_MESSAGES/messages.po # cps/translations/it/LC_MESSAGES/messages.po # cps/translations/ja/LC_MESSAGES/messages.po # cps/translations/km/LC_MESSAGES/messages.po # cps/translations/nl/LC_MESSAGES/messages.po # cps/translations/pl/LC_MESSAGES/messages.po # cps/translations/ru/LC_MESSAGES/messages.po # cps/translations/sv/LC_MESSAGES/messages.po # cps/translations/uk/LC_MESSAGES/messages.po # cps/translations/zh_Hans_CN/LC_MESSAGES/messages.po # messages.pot
88 lines
3.7 KiB
XML
88 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/terms/">
|
|
<id>urn:uuid:2853dacf-ed79-42f5-8e8a-a7bb3d1ae6a2</id>
|
|
<updated>{{ current_time }}</updated>
|
|
<link rel="self"
|
|
href="{{request.script_root + request.full_path}}"
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
|
<link rel="start"
|
|
href="{{url_for('opds.feed_index')}}"
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
|
<link rel="up"
|
|
href="{{url_for('opds.feed_index')}}"
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
|
{% if pagination.has_prev %}
|
|
<link rel="first"
|
|
href="{{request.script_root + request.path}}"
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
|
{% endif %}
|
|
{% if pagination.has_next %}
|
|
<link rel="next"
|
|
title="{{_('Next')}}"
|
|
href="{{ request.script_root + request.path }}?offset={{ pagination.next_offset }}"
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
|
{% endif %}
|
|
{% if pagination.has_prev %}
|
|
<link rel="previous"
|
|
href="{{request.script_root + request.path}}?offset={{ pagination.previous_offset }}"
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
|
{% endif %}
|
|
<link rel="search"
|
|
href="{{url_for('opds.feed_osd')}}"
|
|
type="application/opensearchdescription+xml"/>
|
|
<!--link title="{{_('Search')}}" type="application/atom+xml" href="{{url_for('opds.feed_normal_search')}}?query={searchTerms}" rel="search"/-->
|
|
<title>{{instance}}</title>
|
|
<author>
|
|
<name>{{instance}}</name>
|
|
<uri>https://github.com/janeczku/calibre-web</uri>
|
|
</author>
|
|
|
|
{% if entries and entries[0] %}
|
|
{% for entry in entries %}
|
|
<entry>
|
|
<title>{{entry.title}}</title>
|
|
<id>urn:uuid:{{entry.uuid}}</id>
|
|
<updated>{{entry.atom_timestamp}}</updated>
|
|
{% if entry.authors.__len__() > 0 %}
|
|
<author>
|
|
<name>{{entry.authors[0].name}}</name>
|
|
</author>
|
|
{% endif %}
|
|
{% if entry.publishers.__len__() > 0 %}
|
|
<publisher>
|
|
<name>{{entry.publishers[0].name}}</name>
|
|
</publisher>
|
|
{% endif %}
|
|
{% for lang in entry.languages %}
|
|
<dcterms:language>{{lang.lang_code}}</dcterms:language>
|
|
{% endfor %}
|
|
{% for tag in entry.tags %}
|
|
<category scheme="http://www.bisg.org/standards/bisac_subject/index.html"
|
|
term="{{tag.name}}"
|
|
label="{{tag.name}}"/>
|
|
{% endfor %}
|
|
{% if entry.comments[0] %}<summary>{{entry.comments[0].text|striptags}}</summary>{% endif %}
|
|
{% if entry.has_cover %}
|
|
<link type="image/jpeg" href="{{url_for('opds.feed_get_cover', book_id=entry.id)}}" rel="http://opds-spec.org/image"/>
|
|
<link type="image/jpeg" href="{{url_for('opds.feed_get_cover', book_id=entry.id)}}" rel="http://opds-spec.org/image/thumbnail"/>
|
|
{% endif %}
|
|
{% for format in entry.data %}
|
|
<link rel="http://opds-spec.org/acquisition" href="{{ url_for('opds.opds_download_link', book_id=entry.id, book_format=format.format|lower)}}"
|
|
length="{{format.uncompressed_size}}" mtime="{{entry.atom_timestamp}}" type="{{format.format|lower|mimetype}}"/>
|
|
{% endfor %}
|
|
</entry>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% for entry in listelements %}
|
|
<entry>
|
|
{% if entry.__class__.__name__ == 'Shelf' and entry.is_public == 1 %}
|
|
<title>{{entry.name}} {{_('(Public)')}}</title>
|
|
{% else %}
|
|
<title>{{entry.name}}</title>
|
|
{% endif %}
|
|
<id>{{ url_for(folder, book_id=entry.id) }}</id>
|
|
<link rel="subsection" type="application/atom+xml;profile=opds-catalog" href="{{url_for(folder, book_id=entry.id)}}"/>
|
|
</entry>
|
|
{% endfor %}
|
|
</feed>
|