Fix incorrect {action} for new device (Fixes Tautulli/Tautulli-Issues#63)

This commit is contained in:
JonnyWong16 2018-04-28 19:59:23 -07:00
parent e0e7d68df2
commit 30bc3f8a66

View file

@ -709,7 +709,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
'server_machine_id': plexpy.CONFIG.PMS_IDENTIFIER,
'server_platform': plexpy.CONFIG.PMS_PLATFORM,
'server_version': plexpy.CONFIG.PMS_VERSION,
'action': notify_action.lstrip('on_'),
'action': notify_action.split('on_')[-1],
'week_number': arrow.now().isocalendar()[1],
'datestamp': arrow.now().format(date_format),
'timestamp': arrow.now().format(time_format),
@ -914,7 +914,7 @@ def build_server_notify_params(notify_action=None, **kwargs):
'server_platform': plexpy.CONFIG.PMS_PLATFORM,
'server_version': plexpy.CONFIG.PMS_VERSION,
'server_machine_id': plexpy.CONFIG.PMS_IDENTIFIER,
'action': notify_action.lstrip('on_'),
'action': notify_action.split('on_')[-1],
'datestamp': arrow.now().format(date_format),
'timestamp': arrow.now().format(time_format),
'unixtime': int(time.time()),