readium / go-toolkit

A toolkit for ebooks, audiobooks and comics written in Go

Home Page:https://readium.org/web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpub manifest JSON `spine` and `resource` lists of links should be mutually-exclusive / non-overlaping?

danielweck opened this issue · comments

https://readium2.feedbooks.net/Ym9va3MvY2hpbGRyZW5zLWxpdGVyYXR1cmUuZXB1Yg==/manifest.json

If I am not mistaken, cover.xhtml, nav.xhtml and s04.xhtml should only appear in the spine collection, not resources:

...
, 
"spine": [
  {
   "href": "https://aldiko-stats.feedbooks.net/Ym9va3MvY2hpbGRyZW5zLWxpdGVyYXR1cmUuZXB1Yg==/EPUB/cover.xhtml",
   "type": "application/xhtml+xml"
  },
  {
   "href": "https://aldiko-stats.feedbooks.net/Ym9va3MvY2hpbGRyZW5zLWxpdGVyYXR1cmUuZXB1Yg==/EPUB/nav.xhtml",
   "type": "application/xhtml+xml",
   "rel": [
    "contents"
   ],
   "properties": {
    "contains": [
     "js"
    ]
   }
  },
  {
   "href": "https://aldiko-stats.feedbooks.net/Ym9va3MvY2hpbGRyZW5zLWxpdGVyYXR1cmUuZXB1Yg==/EPUB/s04.xhtml",
   "type": "application/xhtml+xml"
  }
 ],

 "resources": [
...
{
   "href": "https://aldiko-stats.feedbooks.net/Ym9va3MvY2hpbGRyZW5zLWxpdGVyYXR1cmUuZXB1Yg==/EPUB/cover.xhtml",
   "type": "application/xhtml+xml"
  },
  {
   "href": "https://aldiko-stats.feedbooks.net/Ym9va3MvY2hpbGRyZW5zLWxpdGVyYXR1cmUuZXB1Yg==/EPUB/s04.xhtml",
   "type": "application/xhtml+xml"
  },
  {
   "href": "https://aldiko-stats.feedbooks.net/Ym9va3MvY2hpbGRyZW5zLWxpdGVyYXR1cmUuZXB1Yg==/EPUB/nav.xhtml",
   "type": "application/xhtml+xml",
   "rel": [
    "contents"
   ],
   "properties": {
    "contains": [
     "js"
    ]
   }
  }
...
 ],
...

That's correct, we shouldn't have any overlap between spine and resources cc @banux.

I don't know which version of the streamer is running on our servers though.