diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html
index 571bd867..76a8551f 100644
--- a/data/interfaces/default/settings.html
+++ b/data/interfaces/default/settings.html
@@ -882,13 +882,17 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
{player} |
The name of the device being used for playback. |
+
+ {ip_address} |
+ The IP address of the device being used for playback. (PMS 0.9.14 and above) |
+
{media_type} |
The type of media being played (movie, episode, track). |
{title} |
- The title of the item being played. |
+ The full title of the item being played. |
{show_name} |
@@ -906,6 +910,10 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
{album_name} |
The title of the album being played. |
+
+ {track_name} |
+ The title of the track being played. |
+
{season_num} |
The season number for the media item if item is episode. |
diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py
index af7d6a80..f85887f4 100644
--- a/plexpy/notification_handler.py
+++ b/plexpy/notification_handler.py
@@ -355,6 +355,7 @@ def build_notify_text(session=None, timeline=None, state=None):
user = ''
platform = ''
player = ''
+ ip_address = 'N/A'
# Session values
if session:
@@ -383,6 +384,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'
progress_percent = helpers.get_percent(view_offset, duration)
@@ -390,12 +392,14 @@ def build_notify_text(session=None, timeline=None, state=None):
'user': user,
'platform': platform,
'player': player,
+ 'ip_address': ip_address,
'media_type': metadata['media_type'],
'title': full_title,
'show_name': metadata['grandparent_title'],
'episode_name': metadata['title'],
'artist_name': metadata['grandparent_title'],
'album_name': metadata['parent_title'],
+ 'track_name': metadata['title'],
'season_num': metadata['parent_index'],
'season_num00': metadata['parent_index'].zfill(2),
'episode_num': metadata['index'],