diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html
index 672c9fbf..92134041 100644
--- a/data/interfaces/default/settings.html
+++ b/data/interfaces/default/settings.html
@@ -1224,6 +1224,10 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
{transcode_audio_channels} |
The audio channels of the transcoded media. |
+
+ {user_id} |
+ The unique identifier for the user. |
+
@@ -1323,6 +1327,22 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
{duration} |
The duration (in minutes) for the item. |
+
+ {section_id} |
+ The unique identifier for the library. |
+
+
+ {rating_key} |
+ The unique identifier for the item. |
+
+
+ {parent_rating_key} |
+ The unique identifier for the item parent (season or album). |
+
+
+ {grandparent_rating_key} |
+ The unique identifier for the item grandparent (TV show or artist). |
+
diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py
index d1ea6856..fab5803d 100644
--- a/plexpy/notification_handler.py
+++ b/plexpy/notification_handler.py
@@ -456,6 +456,7 @@ def build_notify_text(session=None, timeline=None, state=None):
transcode_video_height = ''
transcode_audio_codec = ''
transcode_audio_channels = ''
+ user_id = ''
# Session values
if session:
@@ -498,6 +499,7 @@ def build_notify_text(session=None, timeline=None, state=None):
transcode_video_height = session['transcode_height']
transcode_audio_codec = session['transcode_audio_codec']
transcode_audio_channels = session['transcode_audio_channels']
+ user_id = session['user_id']
progress_percent = helpers.get_percent(view_offset, duration)
@@ -549,6 +551,7 @@ def build_notify_text(session=None, timeline=None, state=None):
'transcode_video_height': transcode_video_height,
'transcode_audio_codec': transcode_audio_codec,
'transcode_audio_channels': transcode_audio_channels,
+ 'user_id': user_id,
'title': full_title,
'library_name': metadata['library_name'],
'show_name': show_name,
@@ -570,7 +573,11 @@ def build_notify_text(session=None, timeline=None, state=None):
'summary': metadata['summary'],
'tagline': metadata['tagline'],
'rating': metadata['rating'],
- 'duration': duration
+ 'duration': duration,
+ 'section_id': metadata['section_id'],
+ 'rating_key': metadata['rating_key'],
+ 'parent_rating_key': metadata['parent_rating_key'],
+ 'grandparent_rating_key': metadata['grandparent_rating_key']
}
# Default subject text