diff --git a/plexpy/activity_processor.py b/plexpy/activity_processor.py index e64308c7..bdc2b83d 100644 --- a/plexpy/activity_processor.py +++ b/plexpy/activity_processor.py @@ -79,6 +79,7 @@ class ActivityProcessor(object): if result == 'insert': # Push any notifications - Push it on it's own thread so we don't hold up our db actions if notify: + values.update({'ip_address': session['ip_address']}) threading.Thread(target=notification_handler.notify, kwargs=dict(stream_data=values, notify_action='play')).start() diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 4dab68dc..29d65097 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -404,7 +404,7 @@ def build_notify_text(session=None, timeline=None, state=None): user = session['friendly_name'] platform = session['platform'] player = session['player'] - ip_address = session['ip_address'] if session['ip_address'] != '' else 'N/A' + ip_address = session['ip_address'] if session['ip_address'] else 'N/A' progress_percent = helpers.get_percent(view_offset, duration)