Actually use BODY_TEXT_USER
This commit is contained in:
parent
98b72f0a62
commit
31ddd97a34
@ -210,7 +210,8 @@ def terminate_session(session_id, message, notifier=None, username=None):
|
|||||||
"Successfully killed Plex session: {0}.".format(session_id))
|
"Successfully killed Plex session: {0}.".format(session_id))
|
||||||
if notifier:
|
if notifier:
|
||||||
if username:
|
if username:
|
||||||
body = BODY_TEXT.format(user=username, message=message)
|
body = BODY_TEXT_USER.format(user=username,
|
||||||
|
message=message)
|
||||||
else:
|
else:
|
||||||
body = BODY_TEXT.format(id=session_id, message=message)
|
body = BODY_TEXT.format(id=session_id, message=message)
|
||||||
send_notification(SUBJECT_TEXT, body, notifier)
|
send_notification(SUBJECT_TEXT, body, notifier)
|
||||||
|
Loading…
Reference in New Issue
Block a user