Fix #1233 (Update opds cover and thumb rel to match OPDS 1.0 and higher)

This commit is contained in:
Kovid Goyal 2020-09-24 20:42:03 +05:30
parent 6ab2331f93
commit 9b696217a4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -235,6 +235,8 @@ def ACQUISITION_ENTRY(book_id, updated, request_context):
ans.append(link)
ans.append(E.link(type='image/jpeg', href=get(what='cover'), rel="http://opds-spec.org/cover"))
ans.append(E.link(type='image/jpeg', href=get(what='thumb'), rel="http://opds-spec.org/thumbnail"))
ans.append(E.link(type='image/jpeg', href=get(what='cover'), rel="http://opds-spec.org/image"))
ans.append(E.link(type='image/jpeg', href=get(what='thumb'), rel="http://opds-spec.org/image/thumbnail"))
return ans