Programmatic download of plex media server

I maintain this little script that programatically installs plex media server, it supports macos and ubuntu fine, however I’d like to expand it to fedora and whatever else.

The problem is the instructions here:

https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/#enable-repository-updating-for-supported-linux-server-distributions/

Require the .repo to already be added locally, which from some digging is performed when one already installs the .rpm from Media Server Downloads | Plex Media Server for Windows, Mac, Linux, FreeBSD and More

Other packages provide a URL to a .repo that then allows one to install the package, e.g. https://cli.github.com/packages/rpm/gh-cli.repo which makes programmatic installation way easier dorothy/setup-util-gh at dc114421c889340665d5da9d8bd538cb5a3c60b7 · bevry/dorothy · GitHub — so having the same for plex would be great.

Alternatively, is there any programmatic access to the URLs of the latest release files? Such as a json document, or just a plain text listing with each binary on its own line.

Did some web inspector snooping, seems the JSON list is at:

https://plex.tv/pms/downloads/5.json?channel=plexpass

which is the same as

https://plex.tv/api/downloads/5.json?channel=plexpass

Not sure what 5 is about, as it is the same as 1, however 2-4 are different.

GitHub search also returns 6.json: Sign in to GitHub · GitHub


5.json seems the only one that includes linux data, as well as everything else

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.