Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Fetch and update servers non-interactively #1414

Open
chaptergy opened this issue Feb 23, 2023 · 4 comments
Open

Feature request: Fetch and update servers non-interactively #1414

chaptergy opened this issue Feb 23, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@chaptergy
Copy link

chaptergy commented Feb 23, 2023

Feature description

Use case

In case, the IP address of a Plex Media Server is not static, the URL of it changes as well (because it contains the IP). An example snippet from the servers.yml might look like this:

my-plex-server:
    token: d9th-onA5iug93-bLxuQ1s
    urls:
    - https://123-123-123-123.jxrdwhywbaxb0urov6ek8beud9hn1821.plex.direct:10482
    - http://123.123.123.123:10482

So whenever the IP address changes, the syncing fails, and instead you have to delete the server.yml and login to Plex again. It would be cool if it could automatically fetch the servers before a sync and update them if necessary, without having to interact with thr cli again. Or if there was a command to update the servers.

Workarounds

Just having a static IP address, I guess

Plan to implement

Not right now, I could look into it in the future, but so far I don't know anything about the Plex API

@chaptergy chaptergy added the enhancement New feature or request label Feb 23, 2023
@chaptergy chaptergy changed the title Feature request: Fetch servers before syncing Feature request: Fetch and update servers Feb 23, 2023
@glensc
Copy link
Collaborator

glensc commented Feb 27, 2023

there is command to log in, it's called plex-login.

@chaptergy
Copy link
Author

There is, however, that command does require interactive inputs (because it asks to overwrite the existing token and the --username and --password args do not seem to work when it already has an access token stored). Even with those working, when two-factor authentication is enabled, the password contains the TOTP token, which is a bit more complicated to add in there.

So what is ticket is about is being able to update the servers non-interactively, without having to enter stuff again.

@glensc

This comment was marked as resolved.

@chaptergy chaptergy changed the title Feature request: Fetch and update servers Feature request: Fetch and update servers non-interactively Jun 1, 2023
@glensc
Copy link
Collaborator

glensc commented Jan 30, 2024

This is somewhat related:

It doesn't ask for the token to be input, reuses if account token is present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants