Cleanup token None value check
The config api, now cleans up empty values itself
MODIFY
plex_trakt_sync/commands/plex_login.py
plex_trakt_sync/commands/plex_login.py
@@ -132,7 +132,7 @@ def choose_server(account: MyPlexAccount):
def has_plex_token():
- return CONFIG["PLEX_TOKEN"] is not None and CONFIG["PLEX_TOKEN"] != "-"
+ return CONFIG["PLEX_TOKEN"] is not None
@click.command()

MODIFY
plex_trakt_sync/commands/trakt_login.py
plex_trakt_sync/commands/trakt_login.py
@@ -39,7 +39,7 @@ def trakt_authenticate(api: TraktApi):
def has_trakt_token():
if not exists(pytrakt_file):
return False
- return CONFIG["TRAKT_USERNAME"] is not None and CONFIG["TRAKT_USERNAME"] != "None"
+ return CONFIG["TRAKT_USERNAME"] is not None
@click.command()

Cleanup token None value check

The config api, now cleans up empty values itself