mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-22 22:23:36 -07:00
Merge 4d849e73e9
into c17bf79d79
This commit is contained in:
commit
1efe83c6be
2 changed files with 7 additions and 0 deletions
|
@ -1142,6 +1142,10 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
|
||||||
<td><strong>{progress}</strong></td>
|
<td><strong>{progress}</strong></td>
|
||||||
<td>The last reported offset (in minutes) for the item.</td>
|
<td>The last reported offset (in minutes) for the item.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><strong>{progress_time}</strong></td>
|
||||||
|
<td>The last reported offset (in time format) for the item.</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>{progress_percent}</strong></td>
|
<td><strong>{progress_percent}</strong></td>
|
||||||
<td>The last reported progress percent for the item.</td>
|
<td>The last reported progress percent for the item.</td>
|
||||||
|
|
|
@ -457,6 +457,7 @@ def build_notify_text(session=None, timeline=None, state=None):
|
||||||
transcode_audio_codec = ''
|
transcode_audio_codec = ''
|
||||||
transcode_audio_channels = ''
|
transcode_audio_channels = ''
|
||||||
user_id = ''
|
user_id = ''
|
||||||
|
progress_time = ''
|
||||||
|
|
||||||
# Session values
|
# Session values
|
||||||
if session:
|
if session:
|
||||||
|
@ -500,6 +501,7 @@ def build_notify_text(session=None, timeline=None, state=None):
|
||||||
transcode_audio_codec = session['transcode_audio_codec']
|
transcode_audio_codec = session['transcode_audio_codec']
|
||||||
transcode_audio_channels = session['transcode_audio_channels']
|
transcode_audio_channels = session['transcode_audio_channels']
|
||||||
user_id = session['user_id']
|
user_id = session['user_id']
|
||||||
|
progress_time = arrow.get(helpers.cast_to_int(session['view_offset'])/1000).format(plexpy.CONFIG.TIME_FORMAT.replace('zz','').replace('a','').replace('A','').replace('h',''))
|
||||||
|
|
||||||
progress_percent = helpers.get_percent(view_offset, duration)
|
progress_percent = helpers.get_percent(view_offset, duration)
|
||||||
|
|
||||||
|
@ -531,6 +533,7 @@ def build_notify_text(session=None, timeline=None, state=None):
|
||||||
'stream_duration': stream_duration,
|
'stream_duration': stream_duration,
|
||||||
'remaining_duration': duration - view_offset,
|
'remaining_duration': duration - view_offset,
|
||||||
'progress': view_offset,
|
'progress': view_offset,
|
||||||
|
'progress_time': progress_time,
|
||||||
'progress_percent': progress_percent,
|
'progress_percent': progress_percent,
|
||||||
'container': container,
|
'container': container,
|
||||||
'video_codec': video_codec,
|
'video_codec': video_codec,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue