OPDS configuration

Information and Tutorials on features in Mylar and how to use it
Post Reply
MobileInsomnia
Posts: 12
Joined: Fri Feb 12, 2021 3:47 pm

OPDS configuration

Post by MobileInsomnia »

Hi! I'm loving Mylar, and I've got it working really well now. But I've just stumbled onto OPDS. I've been researching it, and only recently noticed that Mylar has the functionality. I've tried enabling it, but it's not working. I've poked around in the config.ini, but I'm not seeing anything obvious. When I browse to http://localhost:8090/opds, below is what I get. With debug on, I only get a single line that mentions opds: "2021-06-22 16:04:19 DEBUG Recieved OPDS command: root". What are the obvious first things to check? Where should I start troubleshooting?

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<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</title>
<id>http:::localhost:8090:opds</id>
<updated>2021-06-22 16:04: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" type="application/atom+xml; profile=opds-catalog; kind=navigation"/>
<link rel="search" href="/opds?cmd=search" type="application/opensearchdescription+xml" title="Search"/>
<entry>
<title>Recent Additions</title>
<id>Recent</id>
<updated>2021-06-22 16:04:19</updated>
<content type="text">Recently Added Issues</content>
<link href="/opds?cmd=Recent" rel="subsection" type="application/atom+xml; profile=opds-catalog; kind=acquisition"/>
</entry>
<entry>
<title>Publishers (38)</title>
<id>Publishers</id>
<updated>2021-06-22 16:04:19</updated>
<content type="text">List of Comic Publishers</content>
<link href="/opds?cmd=Publishers" rel="subsection" type="application/atom+xml; profile=opds-catalog; kind=navigation"/>
</entry>
<entry>
<title>All Titles (375)</title>
<id>AllTitles</id>
<updated>2021-06-22 16:04:19</updated>
<content type="text">List of All Comics</content>
<link href="/opds?cmd=AllTitles" rel="subsection" type="application/atom+xml; profile=opds-catalog; kind=navigation"/>
</entry>
<entry>
<title>Story Arcs (1)</title>
<id>StoryArcs</id>
<updated>2021-06-22 16:04:19</updated>
<content type="text">List of Story Arcs</content>
<link href="/opds?cmd=StoryArcs" rel="subsection" type="application/atom+xml; profile=opds-catalog; kind=navigation"/>
</entry>
</feed>
barbequesauce
Posts: 95
Joined: Fri Feb 03, 2017 3:59 pm

Re: OPDS configuration

Post by barbequesauce »

Hi!

That’s working as designed. OPDS is not designed to be consumed by a browser, instead by OPDS clients like Chunky or MoonReader…

If you’re looking for a way to read your comics in a browser, take a look at Codex, Kavita, or Komga…
MobileInsomnia
Posts: 12
Joined: Fri Feb 12, 2021 3:47 pm

Re: OPDS configuration

Post by MobileInsomnia »

Gotcha! I'm also using Moon+, but I'm getting connection refused. I checked, and I'm not able to pull up the Mylar from another machine, like I can Radarr. I'm looking through the settings for a related setting now, but I can't find anything. What should I be looking for?
burnshroom
Posts: 12
Joined: Fri May 19, 2017 6:36 am

Re: OPDS configuration

Post by burnshroom »

Did a quick test with OPDS enabled in Mylar and it came up no issues in Moon Reader Pro +...
Image
Image
Image

Here is a video link of it working... https://i.imgur.com/ZVDPGXZ.mp4
barbequesauce
Posts: 95
Joined: Fri Feb 03, 2017 3:59 pm

Re: OPDS configuration

Post by barbequesauce »

MobileInsomnia wrote: Tue Jun 22, 2021 8:24 pm Gotcha! I'm also using Moon+, but I'm getting connection refused. I checked, and I'm not able to pull up the Mylar from another machine, like I can Radarr. I'm looking through the settings for a related setting now, but I can't find anything. What should I be looking for?
How are you running it? Docker? What OS? Need a starting place to help you troubleshoot.
MobileInsomnia
Posts: 12
Joined: Fri Feb 12, 2021 3:47 pm

Re: OPDS configuration

Post by MobileInsomnia »

I'm running it in Ubuntu 20.04 LTS. I installed it by running pip3. I've got Radarr, Sonarr, etc all running, and I can access them from my phone's browser by pointing them at my server's IP with the associated port number. But I just realized that I can't pull up the Mylar interface like that. When I point my browser from another device to the correct IP with the associated port number. I ran netstat, and the port looks open to me:

tcp 0 0 127.0.0.1:8090 0.0.0.0:* LISTEN

I changed the port to another port I've used successfully in the past that I've stopped using, so I know there wouldn't be a conflict in the port numbers, but it still doesn't work. So I think there's another underlying problem? I bet an OPDS client on the same machine would see it fine, but that defeats the purpose.

I've uploaded my carepackage here if that helps: https://megafile.cc/d/zYg2/carepackage

Where to go from here?
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: OPDS configuration

Post by evilhero »

You have your Mylar host set to localhost, which will only allow you to access the Mylar interface or anything pertaining to it on the local interface.

If you want to access it from a different machine - but within the same network, set the host to 0.0.0.0.0[:8090/b] so that it will listen to all interfaces (local and external). You can also set it to the machine's IP address with the same result (you still need to specify the port).

Note that when you do this if your machine is accessible outside of your LAN (meaning internet) you're exposing Mylar to the outside as well - in which case you need to either have it behind a reverse proxy type or enable the login/password option (or both) or some other type of security measure.
MobileInsomnia
Posts: 12
Joined: Fri Feb 12, 2021 3:47 pm

Re: OPDS configuration

Post by MobileInsomnia »

Thanks! That fixed it!

Is there a place we can donate to the team working on Mylar? I've really enjoyed using it, and I'd like to give back.
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: OPDS configuration

Post by evilhero »

The donation links are within the first tab of the configuration within Mylar.

While not necessary, obviously very much appreciated and the funds are used to help maintain our existing (and upcoming!) systems.
Post Reply