Add method to get all urls from MyPlexResource
MODIFY
plextraktsync/commands/plex_login.py
plextraktsync/commands/plex_login.py
from plexapi.server import PlexServer
from plextraktsync.config.ServerConfig import ServerConfig
+from plextraktsync.decorators.flatten import flatten_list
from plextraktsync.factory import factory
from plextraktsync.style import (comment, disabled, error, highlight, prompt,
success, title)
)
+@flatten_list
+def server_urls(server: MyPlexResource):
+ """
+ Return urls to connect to specific server
+ """
+
+ yield from [c.uri for c in server.connections]
+ yield local_url()
+
+
def myplex_login(username, password):
while True:
username = click.prompt(PROMPT_PLEX_USERNAME, type=str, default=username)

Add method to get all urls from MyPlexResource