start msg with usernames
MODIFY
get_env_data.py
get_env_data.py
continue
try:
token = account.user(name).get_token(plex.machineIdentifier)
+ username = name
break
except:
print("Impossible to find the managed user \'"+name+"\' on this server!")
name = "_wrong"
with open(env_file, 'w') as txt:
+ txt.write("PLEX_USERNAME=" + username + "\n")
txt.write("PLEX_TOKEN=" + token + "\n")
print("Plex token has been added in .env file: PLEX_TOKEN=" + token)
else:
with open(env_file, "w") as txt:
+ txt.write("PLEX_USERNAME=-\n")
txt.write("PLEX_TOKEN=-\n")
trakt.core.AUTH_METHOD=trakt.core.DEVICE_AUTH

MODIFY
main.py
main.py
@@ -262,6 +262,9 @@ def main():
level=logLevel)
listutil = TraktListUtil()
# do not use the cache for account specific stuff as this is subject to change
+ start_msg = "Starting sync Plex user {} and Trakt user {}.".format(getenv('PLEX_USERNAME'), getenv('TRAKT_USERNAME'))
+ print(start_msg)
+ logging.info(start_msg)
with requests_cache.disabled():
if CONFIG['sync']['liked_lists']:
liked_lists = pytrakt_extensions.get_liked_lists()
@@ -319,7 +322,7 @@ def main():
continue
timedelta = time() - section_start_time
- logging.warning("Completed section sync in {} s".format(timedelta))
+ logging.warning("Completed section sync in {:.1f} s".format(timedelta))
listutil.updatePlexLists(plex)
logging.info("Updated plex watchlist")

start msg with usernames