Specify Jellyfin refresh port in amc script

All your suggestions, requests and ideas for future development
Post Reply
cstrong
Posts: 4
Joined: 07 Feb 2025, 04:15

Specify Jellyfin refresh port in amc script

Post by cstrong »

I have configured the amc script to refresh jellyfin:

Code: Select all

--def jellyfin="jellyfin_host:api_key"
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:

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 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.
User avatar
rednoah
The Source
Posts: 23833
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Specify Jellyfin refresh port in amc script

Post by rednoah »

You can add :PORT after the HOST or IP bit:

Shell: Select all

--def jellyfin="IP:PORT:API_KEY"
:!: Note that you must use an IP if you want HTTP communication. If you specify HOST:PORT then FileBot will communicate on that port with HTTPS.


e.g. HTTP

Shell: Select all

--def jellyfin="192.168.1.100"
e.g. HTTPS

Shell: Select all

--def jellyfin="seedbox.example.com"
:idea: Please read the FAQ and How to Request Help.
cstrong
Posts: 4
Joined: 07 Feb 2025, 04:15

Re: Specify Jellyfin refresh port in amc script

Post by cstrong »

Great, thank you!
Post Reply