Add grouped notification params

This commit is contained in:
JonnyWong16 2016-10-08 18:23:08 -07:00 committed by JonnyWong16
parent d97cacff14
commit e1bd5ed49e
7 changed files with 221 additions and 87 deletions

View file

@ -2671,6 +2671,12 @@ a .home-platforms-list-cover-face:hover
border-radius: 8px;
background-clip: padding-box;
}
pre::-webkit-scrollbar-track {
background-color: rgba(255,255,255,.2);
}
pre::-webkit-scrollbar-thumb {
background-color: rgba(0,0,0,.15);
}
@media only screen
and (min-device-width: 300px)

View file

@ -951,15 +951,10 @@
<div class="checkbox">
<label>
<input type="checkbox" name="notify_recently_added_grandparent" id="notify_recently_added_grandparent" value="1" ${config['notify_recently_added_grandparent']}> Group notifications for recently added TV Shows or Music
<input type="checkbox" name="notify_group_recently_added" id="notify_group_recently_added" value="1" ${config['notify_group_recently_added']}> Group notifications for recently added TV Shows or Music
</label>
<p class="help-block">
Enable to only get one TV Show or Artist notification for a batch of recently added Episodes or Tracks. Movies are unaffected.<br />
% if config['notify_recently_added_grandparent'] == 'Checked':
<span id="notify_recently_added_grandparent_note" style="color: #eb8600;">Note: No Season/Episode or Album/Track metadata will be available.</span>
% else:
<span id="notify_recently_added_grandparent_note">Note: No Season/Episode or Album/Track metadata will be available.</span>
% endif
Enable to only get one TV Show/Season or Artist/Album notification for a batch of recently added Episodes or Tracks. Movies are unaffected.<br />
</p>
</div>
<div class="form-group">
@ -1588,27 +1583,27 @@
</tr>
<tr>
<td><strong>{season_num}</strong></td>
<td>The season number for the episode.</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.</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 for the episode.</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.</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 for the track.</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.</td>
<td>The two digit track number. <span class="small-muted">(e.g. 04, or 04-10)</span></td>
</tr>
<tr>
<td><strong>{year}</strong></td>
@ -1815,23 +1810,25 @@
<div style="padding-bottom: 10px;">
<p class="help-block">All text inside <span class="inline-pre">&lt;movie&gt;&lt;/movie&gt;</span> tags will only be sent when the media item is a movie.</p>
<p><strong style="color: #fff;">Example:</strong></p>
<pre>{user} has started playing {title} &lt;movie&gt;({year})&lt;/movie&gt;</pre>
<pre>{title} &lt;movie&gt;({year})&lt;/movie&gt; was recently added to Plex</pre>
</div>
<div>
<h4>TV Tag</h4>
<h4>Show / Season / Episode Tags</h4>
</div>
<div style="padding-bottom: 10px;">
<p class="help-block">All text inside <span class="inline-pre">&lt;tv&gt;&lt;/tv&gt;</span> tags will only be sent when the media item is an episode.</p>
<p class="help-block">All text inside <span class="inline-pre">&lt;show&gt;&lt;/show&gt;</span>/<span class="inline-pre">&lt;season&gt;&lt;/season&gt;</span>/<span class="inline-pre">&lt;episode&gt;&lt;/episode&gt;</span>
tags will only be sent when the media item is an show/season/episode.</p>
<p><strong style="color: #fff;">Example:</strong></p>
<pre>{user} has started playing {title} &lt;tv&gt;(S{season_num}E{episode_num})&lt;/tv&gt;</pre>
<pre>&lt;show&gt;{show_name}&lt;/show&gt;&lt;seasom&gt;{show_name} - Season {season_num}&lt;/season&gt;&lt;episode&gt;{show_name} - S{season_num}E{episode_num} - {episode_name}&lt;/episode&gt; was recently added to Plex.</pre>
</div>
<div>
<h4>Music Tag</h4>
<h4>Artist / Album / Track Tag</h4>
</div>
<div>
<p class="help-block">All text inside <span class="inline-pre">&lt;music&gt;&lt;/music&gt;</span> tags will only be sent when the media item is a track.</p>
<p class="help-block">All text inside <span class="inline-pre">&lt;artist&gt;&lt;/artist&gt;</span>/<span class="inline-pre">&lt;album&gt;&lt;/album&gt;</span>/<span class="inline-pre">&lt;track&gt;&lt;/track&gt;</span>
tags will only be sent when the media item is a track.</p>
<p><strong style="color: #fff;">Example:</strong></p>
<pre>{user} has started playing {title} &lt;music&gt;(Track {track_num})&lt;/music&gt;</pre>
<pre>&lt;artist&gt;{artist_name}&lt;/artist&gt;&lt;album&gt;{artist_name} - {album_name}&lt;/album&gt;&lt;track&gt;{artist_name} - {album_name} - {track_name}&lt;/track&gt; was recently added to Plex.</pre>
</div>
</div>
</div>