Set maxwdith on activity image.

Try and fix false "watched" notifications when buffering takes too long on playback start.
This commit is contained in:
Tim 2015-08-02 18:54:33 +02:00
parent 1200eae38e
commit b08d8eb023
2 changed files with 4 additions and 2 deletions

View file

@ -351,7 +351,7 @@ input[type="color"],
}
.dashboard-activity-poster-face {
height: 141px;
width: 250px;
max-width: 250px;
position: relative;
top: 0px;
background-color: rgba(255,255,255,.03);

View file

@ -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 -