Call new trakt login diaog if token not present
MODIFY
plex_trakt_sync/cli.py
plex_trakt_sync/cli.py
from plex_trakt_sync.commands.inspect import inspect
from plex_trakt_sync.commands.plex_login import plex_login, has_plex_token
from plex_trakt_sync.commands.sync import sync
-from plex_trakt_sync.commands.trakt_login import trakt_login
+from plex_trakt_sync.commands.trakt_login import trakt_login, has_trakt_token
from plex_trakt_sync.commands.watch import watch
from plex_trakt_sync.commands.webhook import webhook
@@ -19,6 +19,8 @@ def cli(ctx):
if not ctx.invoked_subcommand:
if not has_plex_token():
plex_login()
+ if not has_trakt_token():
+ trakt_login()
sync()

Call new trakt login diaog if token not present