Add edition_title notification parameter

This commit is contained in:
JonnyWong16 2022-09-27 23:28:48 +00:00 committed by GitHub
parent a8be53e0dc
commit 15afbe3001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -489,8 +489,9 @@ NOTIFICATION_PARAMETERS = [
'category': 'Source Metadata Details', 'category': 'Source Metadata Details',
'parameters': [ 'parameters': [
{'name': 'Media Type', 'type': 'str', 'value': 'media_type', 'description': 'The type of media.', 'example': 'movie, show, season, episode, artist, album, track, clip'}, {'name': 'Media Type', 'type': 'str', 'value': 'media_type', 'description': 'The type of media.', 'example': 'movie, show, season, episode, artist, album, track, clip'},
{'name': 'Title', 'type': 'str', 'value': 'title', 'description': 'The full title of the item.'},
{'name': 'Library Name', 'type': 'str', 'value': 'library_name', 'description': 'The library name of the item.'}, {'name': 'Library Name', 'type': 'str', 'value': 'library_name', 'description': 'The library name of the item.'},
{'name': 'Title', 'type': 'str', 'value': 'title', 'description': 'The full title of the item.'},
{'name': 'Edition Title', 'type': 'str', 'value': 'edition_title', 'description': 'The edition title of the movie.'},
{'name': 'Show Name', 'type': 'str', 'value': 'show_name', 'description': 'The title of the TV show.'}, {'name': 'Show Name', 'type': 'str', 'value': 'show_name', 'description': 'The title of the TV show.'},
{'name': 'Season Name', 'type': 'str', 'value': 'season_name', 'description': 'The title of the TV season.'}, {'name': 'Season Name', 'type': 'str', 'value': 'season_name', 'description': 'The title of the TV season.'},
{'name': 'Episode Name', 'type': 'str', 'value': 'episode_name', 'description': 'The title of the TV episode.'}, {'name': 'Episode Name', 'type': 'str', 'value': 'episode_name', 'description': 'The title of the TV episode.'},

View file

@ -1066,8 +1066,9 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
'machine_id': notify_params['machine_id'], 'machine_id': notify_params['machine_id'],
# Source metadata parameters # Source metadata parameters
'media_type': notify_params['media_type'], 'media_type': notify_params['media_type'],
'title': notify_params['full_title'],
'library_name': notify_params['library_name'], 'library_name': notify_params['library_name'],
'title': notify_params['full_title'],
'edition_title': notify_params['edition_title'],
'show_name': show_name, 'show_name': show_name,
'season_name': season_name, 'season_name': season_name,
'episode_name': episode_name, 'episode_name': episode_name,