AnthonyMusgrove / Emby-ScripterX

Run custom external application or script (batch/bash/powershell/php/python/node.js/custom) on various events within the Emby Server.
https://emby-scripterx.com
78 stars 6 forks source link

Ideas for Notification Parameters in Events #15

Closed ginjaninja1 closed 4 years ago

ginjaninja1 commented 4 years ago

Anthony you asked for ideas for variables.

This list was extracted raw from Tautulli (Plex's equivalent to ScripterX in terms of event notification) Of course the list is enormous and would need to be viewed through the lens of what Emby provides, and your user's priorities, but it is one source of ideas.

I believes the list equally applies to conditions should they ever be introduced.

Global
{tautulli_version} The current version of Tautulli.
{tautulli_remote} The current git remote of Tautulli.
{tautulli_branch} The current git branch of Tautulli.
{tautulli_commit} The current git commit hash of Tautulli.
{server_name} The name of your Plex Server.
{server_ip} The connection IP address for your Plex Server.
{server_port} The connection port for your Plex Server.
{server_url} The connection URL for your Plex Server.
{server_platform} The platform of your Plex Server.
{server_version} The current version of your Plex Server.
{server_machine_id} The unique identifier for your Plex Server.
{action} The action that triggered the notification.
{current_year} The year when the notification is triggered.
{current_month} The month when the notification is triggered. (1 to 12)
{current_day} The day when the notification is triggered. (1 to 31)
{current_hour} The hour when the notification is triggered. (0 to 23)
{current_minute} The minute when the notification is triggered. (0 to 59)
{current_second} The second when the notification is triggered. (0 to 59)
{current_weekday} The ISO weekday when the notification is triggered. (1 (Mon) to 7 (Sun))
{current_week} The ISO week number when the notification is triggered. (1 to 52)
{datestamp} The date (in date format) when the notification is triggered.
{timestamp} The time (in time format) when the notification is triggered.
{unixtime} The unix timestamp when the notification is triggered.
{utctime} The UTC timestamp in ISO format when the notification is triggered.
                <table class="notification-params">
                    <thead>
                        <tr>
                            <th colspan="2">
                                Stream Details
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><strong>{streams}</strong></td>
                            <td>
                                The total number of concurrent streams.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{direct_plays}</strong></td>
                            <td>
                                The total number of concurrent direct plays.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{direct_streams}</strong></td>
                            <td>
                                The total number of concurrent direct streams.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcodes}</strong></td>
                            <td>
                                The total number of concurrent transcodes.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{total_bandwidth}</strong></td>
                            <td>
                                The total Plex Streaming Brain reserved bandwidth (in kbps).
                                <p class="small-muted">(not the used bandwidth)</p>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{lan_bandwidth}</strong></td>
                            <td>
                                The total Plex Streaming Brain reserved LAN bandwidth (in kbps).
                                <p class="small-muted">(not the used bandwidth)</p>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{wan_bandwidth}</strong></td>
                            <td>
                                The total Plex Streaming Brain reserved WAN bandwidth (in kbps).
                                <p class="small-muted">(not the used bandwidth)</p>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{user_streams}</strong></td>
                            <td>
                                The number of concurrent streams by the user streaming.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{user_direct_plays}</strong></td>
                            <td>
                                The number of concurrent direct plays by the user streaming.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{user_direct_streams}</strong></td>
                            <td>
                                The number of concurrent direct streams by the user streaming.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{user_transcodes}</strong></td>
                            <td>
                                The number of concurrent transcodes by the user streaming.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{user}</strong></td>
                            <td>
                                The friendly name of the user streaming.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{username}</strong></td>
                            <td>
                                The username of the user streaming.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{user_email}</strong></td>
                            <td>
                                The email address of the user streaming.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{user_thumb}</strong></td>
                            <td>
                                The profile picture URL of the user streaming.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{device}</strong></td>
                            <td>
                                The type of client device being used for playback.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{platform}</strong></td>
                            <td>
                                The type of client platform being used for playback.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{product}</strong></td>
                            <td>
                                The type of client product being used for playback.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{player}</strong></td>
                            <td>
                                The name of the player being used for playback.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{initial_stream}</strong></td>
                            <td>
                                If the stream is the initial stream of a continuous streaming session.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{ip_address}</strong></td>
                            <td>
                                The IP address of the device being used for playback.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_duration}</strong></td>
                            <td>
                                The duration (in minutes) for the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_time}</strong></td>
                            <td>
                                The duration (in time format) of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{remaining_duration}</strong></td>
                            <td>
                                The remaining duration (in minutes) of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{remaining_time}</strong></td>
                            <td>
                                The remaining duration (in time format) of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{progress_duration}</strong></td>
                            <td>
                                The last reported offset (in minutes) of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{progress_time}</strong></td>
                            <td>
                                The last reported offset (in time format) of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{progress_percent}</strong></td>
                            <td>
                                The last reported progress percent of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_decision}</strong></td>
                            <td>
                                The transcode decisions of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_decision}</strong></td>
                            <td>
                                The video transcode decisions of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audio_decision}</strong></td>
                            <td>
                                The audio transcode decisions of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{subtitle_decision}</strong></td>
                            <td>
                                The subtitle transcode decisions of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{quality_profile}</strong></td>
                            <td>
                                The Plex quality profile of the stream.
                                <span class="small-muted">(e.g. Original, 4 Mbps 720p, etc.)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{optimized_version}</strong></td>
                            <td>
                                If the stream is an optimized version.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{optimized_version_profile}</strong></td>
                            <td>
                                The optimized version profile of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{synced_version}</strong></td>
                            <td>
                                If the stream is an synced version.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{live}</strong></td>
                            <td>
                                If the stream is live TV.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{channel_call_sign}</strong></td>
                            <td>
                                The Live TV channel call sign.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{channel_identifier}</strong></td>
                            <td>
                                The Live TV channel number.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{channel_thumb}</strong></td>
                            <td>
                                The URL for the Live TV channel logo.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{secure}</strong></td>
                            <td>
                                If the stream is using a secure connection.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{relayed}</strong></td>
                            <td>
                                If the stream is using Plex Relay.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_local}</strong></td>
                            <td>
                                If the stream is local.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_location}</strong></td>
                            <td>
                                The network location of the stream.
                                <span class="small-muted">(lan or wan)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_bandwidth}</strong></td>
                            <td>
                                The Plex Streaming Brain reserved bandwidth (in kbps) of the stream.
                                <p class="small-muted">(not the used bandwidth)</p>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_container}</strong></td>
                            <td>
                                The media container of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_bitrate}</strong></td>
                            <td>
                                The bitrate (in kbps) of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_aspect_ratio}</strong></td>
                            <td>
                                The aspect ratio of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_codec}</strong></td>
                            <td>
                                The video codec of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_codec_level}</strong></td>
                            <td>
                                The video codec level of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_bitrate}</strong></td>
                            <td>
                                The video bitrate (in kbps) of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_bit_depth}</strong></td>
                            <td>
                                The video bit depth of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_chroma_subsampling}</strong></td>
                            <td>
                                The video chroma subsampling of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_color_primaries}</strong></td>
                            <td>
                                The video color primaries of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_color_range}</strong></td>
                            <td>
                                The video color range of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_color_space}</strong></td>
                            <td>
                                The video color space of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_color_trc}</strong></td>
                            <td>
                                The video transfer function of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_dynamic_range}</strong></td>
                            <td>
                                The video dynamic range of the stream.
                                <span class="small-muted">(HDR or SDR)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_framerate}</strong></td>
                            <td>
                                The video framerate of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_full_resolution}</strong></td>
                            <td>
                                The video resolution of the stream with scan type.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_ref_frames}</strong></td>
                            <td>
                                The video reference frames of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_resolution}</strong></td>
                            <td>
                                The video resolution of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_scan_type}</strong></td>
                            <td>
                                The video scan type of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_height}</strong></td>
                            <td>
                                The video height of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_width}</strong></td>
                            <td>
                                The video width of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_language}</strong></td>
                            <td>
                                The video language of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_video_language_code}</strong></td>
                            <td>
                                The video language code of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_audio_bitrate}</strong></td>
                            <td>
                                The audio bitrate of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_audio_bitrate_mode}</strong></td>
                            <td>
                                The audio bitrate mode of the stream.
                                <span class="small-muted">(cbr or vbr)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_audio_codec}</strong></td>
                            <td>
                                The audio codec of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_audio_channels}</strong></td>
                            <td>
                                The audio channels of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_audio_channel_layout}</strong></td>
                            <td>
                                The audio channel layout of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_audio_sample_rate}</strong></td>
                            <td>
                                The audio sample rate (in Hz) of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_audio_language}</strong></td>
                            <td>
                                The audio language of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_audio_language_code}</strong></td>
                            <td>
                                The audio language code of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_subtitle_codec}</strong></td>
                            <td>
                                The subtitle codec of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_subtitle_container}</strong></td>
                            <td>
                                The subtitle container of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_subtitle_format}</strong></td>
                            <td>
                                The subtitle format of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_subtitle_forced}</strong></td>
                            <td>
                                If the subtitles are forced.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_subtitle_language}</strong></td>
                            <td>
                                The subtitle language of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_subtitle_language_code}</strong></td>
                            <td>
                                The subtitle language code of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{stream_subtitle_location}</strong></td>
                            <td>
                                The subtitle location of the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_container}</strong></td>
                            <td>
                                The media container of the transcoded stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_video_codec}</strong></td>
                            <td>
                                The video codec of the transcoded stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_video_width}</strong></td>
                            <td>
                                The video width of the transcoded stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_video_height}</strong></td>
                            <td>
                                The video height of the transcoded stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_audio_codec}</strong></td>
                            <td>
                                The audio codec of the transcoded stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_audio_channels}</strong></td>
                            <td>
                                The audio channels of the transcoded stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_hw_requested}</strong></td>
                            <td>
                                If hardware decoding/encoding was requested.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_hw_decoding}</strong></td>
                            <td>
                                If hardware decoding is used.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_hw_decode}</strong></td>
                            <td>
                                The hardware decoding codec.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_hw_decode_title}</strong></td>
                            <td>
                                The hardware decoding codec title.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_hw_encoding}</strong></td>
                            <td>
                                If hardware encoding is used.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_hw_encode}</strong></td>
                            <td>
                                The hardware encoding codec.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_hw_encode_title}</strong></td>
                            <td>
                                The hardware encoding codec title.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{session_key}</strong></td>
                            <td>
                                The unique identifier for the session.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{transcode_key}</strong></td>
                            <td>
                                The unique identifier for the transcode session.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{session_id}</strong></td>
                            <td>
                                The unique identifier for the stream.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{user_id}</strong></td>
                            <td>
                                The unique identifier for the user.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{machine_id}</strong></td>
                            <td>
                                The unique identifier for the player.
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table class="notification-params">
                    <thead>
                        <tr>
                            <th colspan="2">
                                Source Metadata Details
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><strong>{media_type}</strong></td>
                            <td>
                                The type of media.
                                <span class="small-muted">(movie, show, season, episode, artist, album, track, clip)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{title}</strong></td>
                            <td>
                                The full title of the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{library_name}</strong></td>
                            <td>
                                The library name of the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{show_name}</strong></td>
                            <td>
                                The title of the TV series.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{episode_name}</strong></td>
                            <td>
                                The title of the episode.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{artist_name}</strong></td>
                            <td>
                                The name of the artist.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{album_name}</strong></td>
                            <td>
                                The title of the album.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{track_name}</strong></td>
                            <td>
                                The title of the track.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{track_artist}</strong></td>
                            <td>
                                The name of the artist of the track.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{season_num}</strong></td>
                            <td>
                                The season number.
                                <span class="small-muted">(e.g. 1, or 1-3)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{season_num00}</strong></td>
                            <td>
                                The two digit season number.
                                <span class="small-muted">(e.g. 01, or 01-03)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{episode_num}</strong></td>
                            <td>
                                The episode number.
                                <span class="small-muted">(e.g. 6, or 6-10)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{episode_num00}</strong></td>
                            <td>
                                The two digit episode number.
                                <span class="small-muted">(e.g. 06, or 06-10)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{track_num}</strong></td>
                            <td>
                                The track number.
                                <span class="small-muted">(e.g. 4, or 4-10)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{track_num00}</strong></td>
                            <td>
                                The two digit track number.
                                <span class="small-muted">(e.g. 04, or 04-10)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{season_count}</strong></td>
                            <td>
                                The number of seasons.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{episode_count}</strong></td>
                            <td>
                                The number of episodes.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{album_count}</strong></td>
                            <td>
                                The number of albums.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{track_count}</strong></td>
                            <td>
                                The number of tracks.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{year}</strong></td>
                            <td>
                                The release year for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{release_date}</strong></td>
                            <td>
                                The release date (in date format) for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{air_date}</strong></td>
                            <td>
                                The air date (in date format) for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{added_date}</strong></td>
                            <td>
                                The date (in date format) the item was added to Plex.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{updated_date}</strong></td>
                            <td>
                                The date (in date format) the item was updated on Plex.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{last_viewed_date}</strong></td>
                            <td>
                                The date (in date format) the item was last viewed on Plex.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{studio}</strong></td>
                            <td>
                                The studio for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{content_rating}</strong></td>
                            <td>
                                The content rating for the item.
                                <span class="small-muted">(e.g. TV-MA, TV-PG, etc.)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{directors}</strong></td>
                            <td>
                                A list of directors for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{writers}</strong></td>
                            <td>
                                A list of writers for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{actors}</strong></td>
                            <td>
                                A list of actors for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{genres}</strong></td>
                            <td>
                                A list of genres for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{labels}</strong></td>
                            <td>
                                A list of labels for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{collections}</strong></td>
                            <td>
                                A list of collections for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{summary}</strong></td>
                            <td>
                                A short plot summary for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{tagline}</strong></td>
                            <td>
                                A tagline for the media item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{rating}</strong></td>
                            <td>
                                The rating (out of 10) for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{critic_rating}</strong></td>
                            <td>
                                The critic rating (%) for the item.
                                <p class="small-muted">(Ratings source must be Rotten Tomatoes for the Plex Movie agent)</p>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audience_rating}</strong></td>
                            <td>
                                The audience rating (%) for the item.
                                <p class="small-muted">(Ratings source must be Rotten Tomatoes for the Plex Movie agent)</p>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{duration}</strong></td>
                            <td>
                                The duration (in minutes) for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{poster_url}</strong></td>
                            <td>
                                A URL for the movie, TV show, or album poster.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{plex_url}</strong></td>
                            <td>
                                The Plex URL to your server for the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{imdb_id}</strong></td>
                            <td>
                                The IMDB ID for the movie.
                                <span class="small-muted">(e.g. tt2488496)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{imdb_url}</strong></td>
                            <td>
                                The IMDB URL for the movie.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{thetvdb_id}</strong></td>
                            <td>
                                The TVDB ID for the TV show.
                                <span class="small-muted">(e.g. 121361)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{thetvdb_url}</strong></td>
                            <td>
                                The TVDB URL for the TV show.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{themoviedb_id}</strong></td>
                            <td>
                                The TMDb ID for the movie or TV show.
                                <span class="small-muted">(e.g. 15260)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{themoviedb_url}</strong></td>
                            <td>
                                The TMDb URL for the movie or TV show.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{tvmaze_id}</strong></td>
                            <td>
                                The TVmaze ID for the TV show.
                                <span class="small-muted">(e.g. 290)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{tvmaze_url}</strong></td>
                            <td>
                                The TVmaze URL for the TV show.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{musicbrainz_id}</strong></td>
                            <td>
                                The MusicBrainz ID for the artist, album, or track.
                                <span class="small-muted">(e.g. b670dfcf-9824-4309-a57e-03595aaba286)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{musicbrainz_url}</strong></td>
                            <td>
                                The MusicBrainz URL for the artist, album, or track.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{lastfm_url}</strong></td>
                            <td>
                                The Last.fm URL for the album.
                                <p class="small-muted">(Music library agent must be Last.fm)</p>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{trakt_url}</strong></td>
                            <td>
                                The trakt.tv URL for the movie or TV show.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{container}</strong></td>
                            <td>
                                The media container of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{bitrate}</strong></td>
                            <td>
                                The bitrate of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{aspect_ratio}</strong></td>
                            <td>
                                The aspect ratio of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_codec}</strong></td>
                            <td>
                                The video codec of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_codec_level}</strong></td>
                            <td>
                                The video codec level of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_bitrate}</strong></td>
                            <td>
                                The video bitrate of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_bit_depth}</strong></td>
                            <td>
                                The video bit depth of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_chroma_subsampling}</strong></td>
                            <td>
                                The video chroma subsampling of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_color_primaries}</strong></td>
                            <td>
                                The video color primaries of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_color_range}</strong></td>
                            <td>
                                The video color range of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_color_space}</strong></td>
                            <td>
                                The video color space of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_color_trc}</strong></td>
                            <td>
                                The video transfer function of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_dynamic_range}</strong></td>
                            <td>
                                The video dynamic range of the original media.
                                <span class="small-muted">(HDR or SDR)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_framerate}</strong></td>
                            <td>
                                The video framerate of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_full_resolution}</strong></td>
                            <td>
                                The video resolution of the original media with scan type.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_ref_frames}</strong></td>
                            <td>
                                The video reference frames of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_resolution}</strong></td>
                            <td>
                                The video resolution of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_scan_type}</strong></td>
                            <td>
                                The video scan type of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_height}</strong></td>
                            <td>
                                The video height of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_width}</strong></td>
                            <td>
                                The video width of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_language}</strong></td>
                            <td>
                                The video language of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{video_language_code}</strong></td>
                            <td>
                                The video language code of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audio_bitrate}</strong></td>
                            <td>
                                The audio bitrate of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audio_bitrate_mode}</strong></td>
                            <td>
                                The audio bitrate mode of the original media.
                                <span class="small-muted">(cbr or vbr)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audio_codec}</strong></td>
                            <td>
                                The audio codec of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audio_channels}</strong></td>
                            <td>
                                The audio channels of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audio_channel_layout}</strong></td>
                            <td>
                                The audio channel layout of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audio_sample_rate}</strong></td>
                            <td>
                                The audio sample rate (in Hz) of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audio_language}</strong></td>
                            <td>
                                The audio language of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{audio_language_code}</strong></td>
                            <td>
                                The audio language code of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{subtitle_codec}</strong></td>
                            <td>
                                The subtitle codec of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{subtitle_container}</strong></td>
                            <td>
                                The subtitle container of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{subtitle_format}</strong></td>
                            <td>
                                The subtitle format of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{subtitle_forced}</strong></td>
                            <td>
                                If the subtitles are forced.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{subtitle_location}</strong></td>
                            <td>
                                The subtitle location of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{subtitle_language}</strong></td>
                            <td>
                                The subtitle language of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{subtitle_language_code}</strong></td>
                            <td>
                                The subtitle language code of the original media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{file}</strong></td>
                            <td>
                                The file path to the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{filename}</strong></td>
                            <td>
                                The file name of the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{file_size}</strong></td>
                            <td>
                                The file size of the item.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{section_id}</strong></td>
                            <td>
                                The unique identifier for the library.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{rating_key}</strong></td>
                            <td>
                                The unique identifier for the movie, episode, or track.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{parent_rating_key}</strong></td>
                            <td>
                                The unique identifier for the season or album.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{grandparent_rating_key}</strong></td>
                            <td>
                                The unique identifier for the TV show or artist.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{art}</strong></td>
                            <td>
                                The Plex background art for the media.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{thumb}</strong></td>
                            <td>
                                The Plex thumbnail for the movie or episode.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{parent_thumb}</strong></td>
                            <td>
                                The Plex thumbnail for the season or album.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{grandparent_thumb}</strong></td>
                            <td>
                                The Plex thumbnail for the TV show or artist.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{poster_thumb}</strong></td>
                            <td>
                                The Plex thumbnail for the poster image.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{poster_title}</strong></td>
                            <td>
                                The title for the poster image.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{indexes}</strong></td>
                            <td>
                                If the media has video preview thumbnails.
                                <span class="small-muted">(0 or 1)</span>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table class="notification-params">
                    <thead>
                        <tr>
                            <th colspan="2">
                                Plex Remote Access
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><strong>{remote_access_mapping_state}</strong></td>
                            <td>
                                The mapping state of the Plex remote access port.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{remote_access_mapping_error}</strong></td>
                            <td>
                                The mapping error of the Plex remote access port.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{remote_access_public_address}</strong></td>
                            <td>
                                The Plex remote access public IP address.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{remote_access_public_port}</strong></td>
                            <td>
                                The Plex remote access public port.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{remote_access_private_address}</strong></td>
                            <td>
                                The Plex remote access private IP address.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{remote_access_private_port}</strong></td>
                            <td>
                                The Plex remote access private port.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{remote_access_reason}</strong></td>
                            <td>
                                The failure reason for Plex remote access going down.
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table class="notification-params">
                    <thead>
                        <tr>
                            <th colspan="2">
                                Plex Update Available
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><strong>{update_version}</strong></td>
                            <td>
                                The available update version for your Plex Server.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_url}</strong></td>
                            <td>
                                The download URL for the available update.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_release_date}</strong></td>
                            <td>
                                The release date of the available update.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_channel}</strong></td>
                            <td>
                                The update channel.
                                <span class="small-muted">(Public or Plex Pass)</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_platform}</strong></td>
                            <td>
                                The platform of your Plex Server.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_distro}</strong></td>
                            <td>
                                The distro of your Plex Server.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_distro_build}</strong></td>
                            <td>
                                The distro build of your Plex Server.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_requirements}</strong></td>
                            <td>
                                The requirements for the available update.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_extra_info}</strong></td>
                            <td>
                                Any extra info for the available update.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_changelog_added}</strong></td>
                            <td>
                                The added changelog for the available update.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{update_changelog_fixed}</strong></td>
                            <td>
                                The fixed changelog for the available update.
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table class="notification-params">
                    <thead>
                        <tr>
                            <th colspan="2">
                                Tautulli Update Available
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><strong>{tautulli_update_version}</strong></td>
                            <td>
                                The available update version for Tautulli.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{tautulli_update_release_url}</strong></td>
                            <td>
                                The release page URL on GitHub.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{tautulli_update_tar}</strong></td>
                            <td>
                                The tar download URL for the available update.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{tautulli_update_zip}</strong></td>
                            <td>
                                The zip download URL for the available update.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{tautulli_update_commit}</strong></td>
                            <td>
                                The commit hash for the available update.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{tautulli_update_behind}</strong></td>
                            <td>
                                The number of commits behind for the available update.
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{tautulli_update_changelog}</strong></td>
                            <td>
                                The changelog for the available update.
                            </td>
                        </tr>
                    </tbody>
                </table>
ginjaninja1 commented 4 years ago

My current wishlist is Item.IMDBID Series.IMDBID (may not be the same id if the item is an Episode) Item.Libraryname Item.EpisodeNumber Item.SeasonNumber Items.ProductionYear

thanks for considering

ginjaninja1 commented 4 years ago

onMediaItemAdded currently fires when Emby creates virtual episodes (when 'show missing episodes in library' setting is enabled)

SO ideally "Item.IsVirtualEpsiode" would be an available parameter so these could be excluded (either in scripting or on conditions)

AnthonyMusgrove commented 4 years ago

Absolutely mate, I love these suggestions!

I've added the following tokens so far :

%server.name%, %server.port.public.http%, %server.port.public.https%, %server.version%, %server.platform.os%, %server.platform.osver%

MediusDev, 8096, 8920, 4.4.2.0, Win32NT, 6.2.9200.0

along with scripterx version (i'll add that to the version issue)

AnthonyMusgrove commented 4 years ago

I've also added %server.platform.uptime% and I've created it such that it formats as: Server Uptime: 6d 0h 8m 56s Which is %server.platform.uptime% = 6d 0h 8m 56s Would it be more helpful to have another format as well for use in scripting?

AnthonyMusgrove commented 4 years ago

Also added most of your requests mate :)

Episode: %item.name%, Series Name: %series.name%, Season Number: %season.number%, Episode Number: %episode.number%

Episode: Mind Over Murder, Series Name: Family Guy, Season Number: 1, Episode Number: 4

AnthonyMusgrove commented 4 years ago

Sorry, %item.productionyear% is also added:

Episode: %item.name%, %series.name%, Episode %episode.number%, Production year: %item.productionyear%

onPlaybackStart: Episode: A Hero Sits Next Door, Family Guy, Episode 5, Production year: 1999

AnthonyMusgrove commented 4 years ago

I've also added %item.meta.%,%series.meta.%, %season.meta.%, where is the meta provider id for example,

%item.meta.imdb% will give you the imdb id for the item, where item is the episode or movie.

If its an episode, season, or series respectively:

Episode - %item.meta.imdb% is the imdb id for the episode, %season.meta.imdb% is the imdb id for the season the episode belongs to, and %series.meta.imdb% is the imdb id of the series that the episode belongs to.

If the item is a season, %item.meta.imdb% is that seasons imdb id, with series meta also available

If the item is a series, %item.meta.imdb% is the imdb id of the Series, as there is no season or episode in the event, those arent available at that stage which makes sense

Along with imdb, you could also use item.meta.tmdb or any other valid provider Id

Does this sound as per expectation here?

ginjaninja1 commented 4 years ago

yes this as expectation thanks.

is Scripter Event type a notification parameter? was think of storing a queue of events from multiple sources in one file and looking for a way to distinguish adds from updates from removes

ginjaninja1 commented 4 years ago

i realise now thats was a silly suggestion as i can pass my own value for event type as i am define the script parameters.

AnthonyMusgrove commented 4 years ago

That's okay mate, thank you so much for helping get this one sorted out :)