Stop capitalizing the action name in notifications

This commit is contained in:
JonnyWong16 2016-10-19 18:17:30 -07:00 committed by JonnyWong16
parent 486ddb55b2
commit f63b5514f3

View file

@ -420,7 +420,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, *
'server_name': server_name, 'server_name': server_name,
'server_uptime': server_uptime, 'server_uptime': server_uptime,
'server_version': server_times.get('version',''), 'server_version': server_times.get('version',''),
'action': notify_action.split('on_')[-1].title(), 'action': notify_action.split('on_')[-1],
'datestamp': arrow.now().format(date_format), 'datestamp': arrow.now().format(date_format),
'timestamp': arrow.now().format(time_format), 'timestamp': arrow.now().format(time_format),
# Stream parameters # Stream parameters
@ -548,7 +548,7 @@ def build_server_notify_params(notify_action=None, **kwargs):
'server_name': server_name, 'server_name': server_name,
'server_uptime': server_uptime, 'server_uptime': server_uptime,
'server_version': server_times.get('version',''), 'server_version': server_times.get('version',''),
'action': notify_action.split('on_')[-1].title(), 'action': notify_action.split('on_')[-1],
'datestamp': arrow.now().format(date_format), 'datestamp': arrow.now().format(date_format),
'timestamp': arrow.now().format(time_format), 'timestamp': arrow.now().format(time_format),
# Plex Media Server update parameters # Plex Media Server update parameters