Add --server option to watch command
MODIFY
plextraktsync/cli.py
plextraktsync/cli.py
@@ -226,6 +226,11 @@ def unmatched():
@command()
+@click.option(
+ "--server",
+ type=str,
+ help="Plex Server name from servers.yml",
+)
def watch():
"""
Listen to events from Plex

MODIFY
plextraktsync/commands/watch.py
plextraktsync/commands/watch.py
@@ -218,7 +218,10 @@ def scrobble(self, m: Media, percent: float, event: PlaySessionStateNotification
return value
-def watch():
+def watch(server: str):
+ factory.run_config().update(
+ server=server,
+ )
ws = factory.web_socket_listener
updater = factory.watch_state_updater

Add --server option to watch command