[request] Plexamp headless - Node requirements

I have a minor feature request that could help a lot of people with automating the update of Plexamp & its node dependency. You currently provide an API endpoint for the latestVersion and updateUrl. Could you add the Node requirement to this response too? So a response may look like:

{ "latestVersion": "4.11.2", "updateUrl": "https://plexamp.plex.tv/headless/Plexamp-Linux-headless-v4.11.2.tar.bz2, "node": "20.4.2" }

If there’s any reason that you couldn’t do this, could you confirm whether your node requirement reflects that of the included node_modules? In that case, one could at least be confident in processing their package.json files.

Keep the music playing! :slight_smile:

That is a clever idea, unfortunately the feed is generated by electron-updater automatically and I don’t think we have the ability to change it.

Thanks for the reply Elan.

Shame that… Out of interest, is the download metadata published on the website automatically generated too?

I.e. in https://www.plex.tv/media-server-downloads/?cat=headless&plat=raspberry-pi#plex-plexamp you have:

<div class="download-meta"><p>A spare Raspberry Pi and Node 20<br> <a target="_blank" href="https://www.plex.tv/plex-pass/">Plex Pass Subscription Required</a></p> <p id="version">v.4.11.2</p> <!----></div>

If that’s automatically produced, then it’ll probably do the job.

I take it that the packaged node_modules could be at or below the required level and therefore likely to cause issues if relied upon for their devDependencies?

Thanks again :slight_smile:

It’s manually produced :sweat_smile:

I would assume so, yeah. I was thinking you might be able to inspect treble.node for symbols which might indicate the version of the node API used, but I couldn’t quickly find a way to do that.

Damn, you don’t make things easy :wink:

Oh well. If you do think of something, it’d be greatly appreciated. The only other thing I can think of is adding a file to the download archive which states the deps (like your own package.json or similar)?

It’s definitely something we’d like to address in the future. The multiroom stuff has its own upgrade system, and we’ll need to have that upgrade node if required as well.

1 Like

That’ll be fun, I’m sure. PlexOS? :eyes:

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