Skip to content

Commit 3897fcc

Browse files
committed
fix(opds): add Stanza rels and clarify legacy cover/thumbnail mappings
Add Lexcycle Stanza rel values to COVER and THUMBNAIL for broader compatibility with legacy OPDS catalogs, and document existing non-standard ManyBooks rels. - add 'x-stanza-cover-image' (Lexcycle Stanza) - add 'x-stanza-cover-image-thumbnail' (Lexcycle Stanza) - clarify 'http://opds-spec.org/cover' as ManyBooks legacy (non-standard) - clarify 'http://opds-spec.org/thumbnail' as ManyBooks legacy (non-standard)
1 parent 7be0664 commit 3897fcc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

opds.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ export const REL = {
2020
GROUP: 'http://opds-spec.org/group',
2121
COVER: [
2222
'http://opds-spec.org/image',
23-
'http://opds-spec.org/cover',
23+
'http://opds-spec.org/cover', // ManyBooks legacy, not in spec
24+
'x-stanza-cover-image', // Lexcycle Stanza legacy
2425
],
2526
THUMBNAIL: [
2627
'http://opds-spec.org/image/thumbnail',
27-
'http://opds-spec.org/thumbnail',
28+
'http://opds-spec.org/thumbnail', // ManyBooks legacy, not in spec
29+
'x-stanza-cover-image-thumbnail', // Lexcycle Stanza legacy
2830
],
2931
STREAM: 'http://vaemendis.net/opds-pse/stream',
3032
}

0 commit comments

Comments
 (0)