Add guid notification parameter

This commit is contained in:
JonnyWong16 2021-03-29 10:59:11 -07:00
parent 98ad8693b0
commit bd6dd74518
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 2 additions and 0 deletions

View file

@ -561,6 +561,7 @@ NOTIFICATION_PARAMETERS = [
{'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': 'Guid', 'type': 'str', 'value': 'guid', 'description': 'The full guid for 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.'},
{'name': 'Parent Rating Key', 'type': 'int', 'value': 'parent_rating_key', 'description': 'The unique identifier for the season or album.'},

View file

@ -1084,6 +1084,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
'filename': os.path.basename(notify_params['file']),
'file_size': helpers.human_file_size(notify_params['file_size']),
'indexes': notify_params['indexes'],
'guid': notify_params['guid'],
'section_id': notify_params['section_id'],
'rating_key': notify_params['rating_key'],
'parent_rating_key': notify_params['parent_rating_key'],