Force buffer threshold to 10

This commit is contained in:
JonnyWong16 2018-10-13 21:33:43 -07:00
parent 863bb4033c
commit 85b4116491
2 changed files with 3 additions and 4 deletions

View file

@ -223,8 +223,8 @@ class ActivityHandler(object):
(self.get_session_key(), buffer_last_triggered))
time_since_last_trigger = int(time.time()) - int(buffer_last_triggered)
if plexpy.CONFIG.BUFFER_THRESHOLD > 0 and (current_buffer_count >= plexpy.CONFIG.BUFFER_THRESHOLD and \
time_since_last_trigger is None or time_since_last_trigger >= plexpy.CONFIG.BUFFER_WAIT):
if current_buffer_count >= plexpy.CONFIG.BUFFER_THRESHOLD and time_since_last_trigger is None or \
time_since_last_trigger >= plexpy.CONFIG.BUFFER_WAIT:
ap.set_session_buffer_trigger_time(session_key=self.get_session_key())
# Retrieve the session data from our temp table

View file

@ -916,7 +916,6 @@ class Config(object):
self.CONFIG_VERSION = 12
if self.CONFIG_VERSION == 12:
if self.BUFFER_THRESHOLD == 3:
self.BUFFER_THRESHOLD = 10
self.BUFFER_THRESHOLD = max(self.BUFFER_THRESHOLD, 10)
self.CONFIG_VERSION = 13