Add HTTP-BASIC Auth for OPDS downloads

This commit is contained in:
Jan Broer
2015-10-13 19:06:37 +02:00
parent 6b4ddbe946
commit 350285607b
2 changed files with 48 additions and 10 deletions

View File

@@ -55,7 +55,7 @@
{% for format in entry.data %}
<link rel="http://opds-spec.org/acquisition"
href="{{ url_for('get_download_link', book_id=entry.id, format=format.format|lower)}}"{% if format.format|lower == "epub" %}
href="{{ url_for('get_opds_download_link', book_id=entry.id, format=format.format|lower)}}"{% if format.format|lower == "epub" %}
type="application/epub+zip"/>
{% else %}
type="application/x-mobipocket-ebook"/>