Skip to content

Commit

Permalink
Print server connections before connection attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 18, 2021
1 parent 723e57b commit 57e075e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plex_trakt_sync/commands/plex_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def choose_server(account: MyPlexAccount):
server = pick_server(account)
# Connect to obtain baseUrl
click.echo(title(f"Attempting to connect to {server.name}. This may take time and print some errors."))
click.echo(title(f"Server connections:"))
for c in server.connections:
click.echo(f" {c.uri}")
plex = server.connect()
# Validate connection again, the way we connect
plex = PlexServer(token=server.accessToken, baseurl=plex._baseurl)
Expand Down

0 comments on commit 57e075e

Please sign in to comment.