diff --git a/plexpy/common.py b/plexpy/common.py index 8c5247af..98307c27 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -476,6 +476,7 @@ NOTIFICATION_PARAMETERS = [ {'name': 'Subtitle Language', 'type': 'str', 'value': 'subtitle_language', 'description': 'The subtitle language of the original media.'}, {'name': 'Subtitle Language Code', 'type': 'str', 'value': 'subtitle_language_code', 'description': 'The subtitle language code of the original media.'}, {'name': 'File', 'type': 'str', 'value': 'file', 'description': 'The file path to the item.'}, + {'name': 'Filename', 'type': 'str', 'value': 'filename', 'description': 'The file name of the item.'}, {'name': 'File Size', 'type': 'int', 'value': 'file_size', 'description': 'The file size of the item.'}, {'name': 'Section ID', 'type': 'int', 'value': 'section_id', 'description': 'The unique identifier for the library.'}, {'name': 'Rating Key', 'type': 'int', 'value': 'rating_key', 'description': 'The unique identifier for the movie, episode, or track.'}, diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 993b0d84..b467ed7d 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -883,6 +883,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'subtitle_language': notify_params['subtitle_language'], 'subtitle_language_code': notify_params['subtitle_language_code'], 'file': notify_params['file'], + 'filename': os.path.basename(notify_params['file']), 'file_size': helpers.humanFileSize(notify_params['file_size']), 'indexes': notify_params['indexes'], 'section_id': notify_params['section_id'],