Actually use BODY_TEXT_USER

This commit is contained in:
Landon Abney 2018-06-18 11:50:41 -07:00
parent 98b72f0a62
commit 31ddd97a34
No known key found for this signature in database
GPG Key ID: 4414384AEEE3FB2B

View File

@ -210,7 +210,8 @@ def terminate_session(session_id, message, notifier=None, username=None):
"Successfully killed Plex session: {0}.".format(session_id))
if notifier:
if username:
body = BODY_TEXT.format(user=username, message=message)
body = BODY_TEXT_USER.format(user=username,
message=message)
else:
body = BODY_TEXT.format(id=session_id, message=message)
send_notification(SUBJECT_TEXT, body, notifier)