1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-30 03:50:31 +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
No known key found for this signature in database
GPG Key ID: 4BBFA4A7A13B161F

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 %}