Specify Jellyfin refresh port in amc script
Posted: 07 Feb 2025, 18:13
I have configured the amc script to refresh jellyfin:
In the logs, we see that the refresh request is made on port 8920, Jellyfin's HTTPS port. The request times out because I do not have HTTPS enabled:
I don't want to enable HTTPS, as I use Jellyfin only on my LAN and I don't want to muck around with certificates. According to the Jellyfin docs, port 8096 is exposed for HTTP traffic. (https://jellyfin.org/docs/general/netwo ... t-bindings).
I have tested the request using curl and confirmed that port 8920 fails and 8096 succeeds.
It would be great if we could configure the Jellyfin port used for the refresh request. This would also be handy for users who have configured non-standard ports on their Jellyfin setup.
Code: Select all
--def jellyfin="jellyfin_host:api_key"
Code: Select all
2025-02-06 17:05:50.239
POST: https://jellyfin_host:8920/Library/Refresh?api_key=api_key
2025-02-06 17:05:50.358
Network Connection Error: java.net.ConnectException at WebRequest::doRequest < WebRequest::httpRequestV2 < WebRequest::post < WebRequest::post < ScriptShellMethods::post
I have tested the request using curl and confirmed that port 8920 fails and 8096 succeeds.
It would be great if we could configure the Jellyfin port used for the refresh request. This would also be handy for users who have configured non-standard ports on their Jellyfin setup.