mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 07:22:37 -07:00
Fix IP address in notifications
This commit is contained in:
parent
c827c9e825
commit
aaf3de68cf
2 changed files with 2 additions and 1 deletions
|
@ -79,6 +79,7 @@ class ActivityProcessor(object):
|
||||||
if result == 'insert':
|
if result == 'insert':
|
||||||
# Push any notifications - Push it on it's own thread so we don't hold up our db actions
|
# Push any notifications - Push it on it's own thread so we don't hold up our db actions
|
||||||
if notify:
|
if notify:
|
||||||
|
values.update({'ip_address': session['ip_address']})
|
||||||
threading.Thread(target=notification_handler.notify,
|
threading.Thread(target=notification_handler.notify,
|
||||||
kwargs=dict(stream_data=values, notify_action='play')).start()
|
kwargs=dict(stream_data=values, notify_action='play')).start()
|
||||||
|
|
||||||
|
|
|
@ -404,7 +404,7 @@ def build_notify_text(session=None, timeline=None, state=None):
|
||||||
user = session['friendly_name']
|
user = session['friendly_name']
|
||||||
platform = session['platform']
|
platform = session['platform']
|
||||||
player = session['player']
|
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)
|
progress_percent = helpers.get_percent(view_offset, duration)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue