1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-09-06 04:47:57 +00:00

Add a title to OPDS links

This allows the OPDS consumers to distinguish `epub` and `kepub` files
as they have the same MIME-type.
This commit is contained in:
Aleksei Besogonov
2024-12-08 17:29:03 -08:00
parent e49402649d
commit ed600a9aeb

View File

@@ -70,7 +70,7 @@
{% endif %}
{% for format in entry.Books.data %}
<link rel="http://opds-spec.org/acquisition" href="{{ url_for('opds.opds_download_link', book_id=entry.Books.id, book_format=format.format|lower)}}"
length="{{format.uncompressed_size}}" mtime="{{entry.Books.atom_timestamp}}" type="{{format.format|lower|mimetype}}"/>
length="{{format.uncompressed_size}}" title="{{format.format}}" mtime="{{entry.Books.atom_timestamp}}" type="{{format.format|lower|mimetype}}"/>
{% endfor %}
</entry>
{% endfor %}