home » zplus/dokk.org.git
Author zPlus <zplus@peers.community> 2023-09-16 17:54:20
Committer zPlus <zplus@peers.community> 2023-09-16 17:54:20
Commit 4cba382 (patch)
Tree 6557e27
Parent(s)

Add covers to OPDS feeds.


commits diff: f981b7a..4cba382
2 files changed, 2 insertions, 0 deletionsdownload


Diffstat
-rw-r--r-- pages/templates/library/opds/books.tpl 1
-rw-r--r-- pages/templates/library/opds/others.tpl 1

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+1/-0 M   pages/templates/library/opds/books.tpl
index ca6f780..b9df393
old size: 2K - new size: 3K
@@ -71,6 +71,7 @@
71 71 <dc:language></dc:language>
72 72 <dc:identifier></dc:identifier>
73 73 <link rel="http://opds-spec.org/acquisition" href="https://blob.dokk.org/pdf/{{ item['@id'][8:] }}.pdf" type="application/pdf" />
74 + <link rel="http://opds-spec.org/image" href="https://blob.dokk.org/pdf_cover/{{ item['@id'][8:] }}.pdf.png" type="image/png" />
74 75 </entry>
75 76 {% endfor %}
76 77 </feed>

+1/-0 M   pages/templates/library/opds/others.tpl
index d9429d2..93c1025
old size: 2K - new size: 3K
@@ -72,6 +72,7 @@
72 72 <dc:language></dc:language>
73 73 <dc:identifier></dc:identifier>
74 74 <link rel="http://opds-spec.org/acquisition" href="https://blob.dokk.org/pdf/{{ item['@id'][8:] }}.pdf" type="application/pdf" />
75 + <link rel="http://opds-spec.org/image" href="https://blob.dokk.org/pdf_cover/{{ item['@id'][8:] }}.pdf.png" type="image/png" />
75 76 </entry>
76 77 {% endfor %}
77 78 </feed>