Panels with Mylar OPDS not showing any thumbnails in Library

I have a local mylar instance running with the OPDS enabled. When I point panels to it and look at the library of the opds server, it will not show any thumbnails for the comic books. Is this a bug? Thanks

Can you share the XML feed?

Sure. Here is an example

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:opds="http://opds-spec.org/2010/catalog" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:pse="http://vaemendis.net/opds-pse/ns" xmlns:dcterms="http://purl.org/dc/terms/">
<title>Mylar OPDS - Teenage Mutant Ninja Turtles</title>
<id>comic:Teenage Mutant Ninja Turtles (2011)</id>
<updated>2024-01-19</updated>
<author>
<name>Mylar Server</name>
<uri>https://github.com/mylar3/mylar3</uri>
</author>
<link rel="start" href="/opds" type="application/atom+xml; profile=opds-catalog; kind=navigation" title="Home"/>
<link rel="self" href="/opds?cmd=Comic&comicid=42285" type="application/atom+xml; profile=opds-catalog; kind=navigation"/>
<title>Teenage Mutant Ninja Turtles (2011) #1 - None</title>
<id>comic:Teenage Mutant Ninja Turtles (2011) [42285] - 1</id>
<updated>2024-01-19</updated>
<content type="text"/>
<link href="/opds?cmd=Issue&issueid=288545&file=Teenage+Mutant+Ninja+Turtles+1+%282011%29.cbz" rel="http://opds-spec.org/acquisition" type="application/octet-stream"/>
<link href="/opds?cmd=Stream&issueid=288545&file=Teenage+Mutant+Ninja+Turtles+1+%282011%29.cbz&page={pageNumber}&width={maxWidth}" rel="http://vaemendis.net/opds-pse/stream" type="image/jpeg" pse:count="28"/>
<link href="https://comicvine.gamespot.com/a/uploads/scale_small/6/67663/1991311-01a.jpg" type="image/jpeg" rel="http://opds-spec.org/image/thumbnail"/>
<link href="https://comicvine.gamespot.com/a/uploads/scale_medium/6/67663/1991311-01a.jpg" type="image/jpeg" rel="http://opds-spec.org/image"/>
</entry>
</feed>

I switched over to Kavita for my OPDS server and it works as expected. Kavita is also a lot more feature rich so I’ll probably stick with it but still seems like a bug possibly with mylar. I saw some old thread where this was an issue with mylar opds but was fixed in an older version of Panels.

Sorry I haven’t been able to look into this :pray:

Even if you switch to Kavita, I’ll give you a proper answer soon. Thanks for bearing with me.

@bubsypls it looks like that XML is invalid. Can you double-check that’s what you are getting from the server?

that might have been my bad. I tried to simplify the example. Here is another one

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:opds="http://opds-spec.org/2010/catalog" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:pse="http://vaemendis.net/opds-pse/ns" xmlns:dcterms="http://purl.org/dc/terms/">
<title>Mylar OPDS - Teenage Mutant Ninja Turtles</title>
<id>comic:Teenage Mutant Ninja Turtles (2011)</id>
<updated>2024-01-19</updated>
<author>
<name>Mylar Server</name>
<uri>https://github.com/mylar3/mylar3</uri>
</author>
<link rel="start" href="/opds" type="application/atom+xml; profile=opds-catalog; kind=navigation" title="Home"/>
<link rel="self" href="/opds?cmd=Comic&comicid;=155969" type="application/atom+xml; profile=opds-catalog; kind=navigation"/>
<entry>
<title>Teenage Mutant Ninja Turtles (2011) #1 - None</title>
<id>comic:Teenage Mutant Ninja Turtles (2011) [42285] - 1</id>
<updated>2024-01-19</updated>
<content type="text"/>
<link href="/opds?cmd=Issue&issueid=288545&file=Teenage+Mutant+Ninja+Turtles+1+%282011%29.cbz" rel="http://opds-spec.org/acquisition" type="application/octet-stream"/>
<link href="/opds?cmd=Stream&issueid=288545&file=Teenage+Mutant+Ninja+Turtles+1+%282011%29.cbz&page={pageNumber}&width={maxWidth}" rel="http://vaemendis.net/opds-pse/stream" type="image/jpeg" pse:count="28"/>
<link href="https://comicvine.gamespot.com/a/uploads/scale_small/6/67663/1991311-01a.jpg" type="image/jpeg" rel="http://opds-spec.org/image/thumbnail"/>
<link href="https://comicvine.gamespot.com/a/uploads/scale_medium/6/67663/1991311-01a.jpg" type="image/jpeg" rel="http://opds-spec.org/image"/>
</entry>
</feed>
1 Like

It’s still not passing the XML validation check.

Share the XML as Mylar outputs it. I want to write a unit test for it. It would be better if it’s unaltered.

Apologies again! This is what I get for just copying directly from the browser. I also validated this XML and it should be valid.

<feed
  xmlns="http://www.w3.org/2005/Atom"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:opds="http://opds-spec.org/2010/catalog"
  xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
  xmlns:pse="http://vaemendis.net/opds-pse/ns"
  xmlns:dcterms="http://purl.org/dc/terms/"
>
  <title>Mylar OPDS - Teenage Mutant Ninja Turtles</title>
  <id>comic:Teenage Mutant Ninja Turtles (2011)</id>
  <updated>2024-01-21</updated>
  <author>
    <name>Mylar Server</name>
    <uri>https://github.com/mylar3/mylar3</uri>
  </author>
  
  <link
    rel="start"
    href="/opds"
    type="application/atom+xml; profile=opds-catalog; kind=navigation"
     title="Home"
  />
  
  <link
    rel="self"
    href="/opds?cmd=Comic&amp;comicid=42285"
    type="application/atom+xml; profile=opds-catalog; kind=navigation"
    
  />
  
  <link
    rel="next"
    href="/opds?cmd=Comic&amp;comicid=42285&amp;index=30"
    type="application/atom+xml; profile=opds-catalog; kind=navigation"
    
  />
  <entry>
    <title>Teenage Mutant Ninja Turtles (2011) #121 - None</title>
    <id>comic:Teenage Mutant Ninja Turtles (2011) [42285] - 121</id>
    <updated>2021-09-29</updated>
    <content type="text"></content>
    <link
      href="/opds?cmd=Issue&amp;issueid=887025&amp;file=Teenage+Mutant+Ninja+Turtles+121+%282021%29.cbz"
      rel="http://opds-spec.org/acquisition"
      type="application/octet-stream"
    />
    <link
      href="/opds?cmd=Stream&amp;issueid=887025&amp;file=Teenage+Mutant+Ninja+Turtles+121+%282021%29.cbz&amp;page={pageNumber}&amp;width={maxWidth}"
      rel="http://vaemendis.net/opds-pse/stream"
      type="image/jpeg"
      pse:count="28"
    />
    <link
      href="https://comicvine.gamespot.com/a/uploads/scale_small/6/67663/8179245-121a.jpg"
      type="image/jpeg"
      rel="http://opds-spec.org/image/thumbnail"
    />
    <link
      href="https://comicvine.gamespot.com/a/uploads/scale_medium/6/67663/8179245-121a.jpg"
      type="image/jpeg"
      rel="http://opds-spec.org/image"
    />
  </entry>
</feed>

Was this ever resolved? I just got Mylar working and Comics stream flawlessly but I still only have folder icons and grey rectangles, no thumbnails.

Sorry for the late reply folks. We’ve been quite busy with other stuff and I hadn’t had time to look into this again until now.

I found the reason of thumbnails not showing up and it’s due to Mylar hotlinking external images. In this case ComicVine.

Our OPDS integration expects everything to be served by the same domain, and all the URLs are transformed into relative routes and reconstructed again. This lets you change your server URL without breaking the caches and reading sessions.

I’m going to make some changes in the OPDS parser to also store the absolute URL, and use it as a fallback when the thumbnail fails to load with the relative path.

The next version of Panels should fix this issue.
Thanks for your patience :pray: