Check continued session greater than or equal to

This commit is contained in:
JonnyWong16 2020-04-23 23:18:55 -07:00
parent 22bc0b3f9a
commit 426fc09b17
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -653,4 +653,4 @@ class ActivityProcessor(object):
'WHERE user_id = ? AND machine_id = ? AND media_type = ? '
'ORDER BY stopped DESC',
[user_id, machine_id, media_type])
return int(started - last_session.get('stopped', 0) > plexpy.CONFIG.NOTIFY_CONTINUED_SESSION_THRESHOLD)
return int(started - last_session.get('stopped', 0) >= plexpy.CONFIG.NOTIFY_CONTINUED_SESSION_THRESHOLD)