Skip to content

feat: Allow multiple server URLs#224

Open
TriFoxie wants to merge 4 commits intoJustRadical:mainfrom
TriFoxie:Allow-Multiple-Server-Urls
Open

feat: Allow multiple server URLs#224
TriFoxie wants to merge 4 commits intoJustRadical:mainfrom
TriFoxie:Allow-Multiple-Server-Urls

Conversation

@TriFoxie
Copy link

Just a smol thing for a very niche use case I had.
Lets you put in multiple Jellyfin server URLs, and it just tries them and connects to the first available one.

Changes:

  • Backend: A couple structs, mainly the URL one, Vec instead of String
  • Installer.py: multiple input for server url (space separated)
  • Config created with this should have a URLs field similar to the Usernames field.

Related: closes #223

The backend now uses a Vec<String> instead of String for the url variable, and methods using the url iterate through the vector to find the first link that successfully connects.

Limit on 20 server links

This could definitely be implemented better im new to rust pls dont judge :)
Passes array to json, the same way as when mutliple usernames are used.

Installer.py
@TriFoxie
Copy link
Author

Tested on Debian idk if that's relevant

@TriFoxie
Copy link
Author

Tested Windows as well

@ItzELECTR0
Copy link

Just wanted to drop in my support for this. Sometimes my main server is down and I gotta switch to a backup which has a different IP so jf-rpc needs to have it's config updated for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple server links

2 participants