mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Set maxwdith on activity image.
Try and fix false "watched" notifications when buffering takes too long on playback start.
This commit is contained in:
parent
1200eae38e
commit
b08d8eb023
2 changed files with 4 additions and 2 deletions
|
@ -68,7 +68,9 @@ def check_active_sessions():
|
|||
'WHERE session_key = ? AND rating_key = ?',
|
||||
[paused_counter, stream['session_key'], stream['rating_key']])
|
||||
# Check if the user has reached the offset in the media we defined as the "watched" percent
|
||||
if session['progress'] and session['duration']:
|
||||
# Don't trigger if state is buffer as some clients push the progress to the end when
|
||||
# buffering on start.
|
||||
if session['progress'] and session['duration'] and session['state'] != 'buffering':
|
||||
if helpers.get_percent(session['progress'],
|
||||
session['duration']) > plexpy.CONFIG.NOTIFY_WATCHED_PERCENT:
|
||||
# Push any notifications -
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue