mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Update session database with all session data
This commit is contained in:
parent
1b0c32f4e7
commit
c586fe1d07
1 changed files with 5 additions and 4 deletions
|
@ -223,10 +223,11 @@ class ActivityHandler(object):
|
|||
if this_key == last_key:
|
||||
# Update the session state and viewOffset
|
||||
if this_state == 'playing':
|
||||
ap.set_session_state(session_key=self.get_session_key(),
|
||||
state=this_state,
|
||||
view_offset=self.timeline['viewOffset'],
|
||||
stopped=int(time.time()))
|
||||
# Update the session in our temp session table
|
||||
session = self.get_live_session()
|
||||
if session:
|
||||
self.update_db_session(session=session)
|
||||
|
||||
# Start our state checks
|
||||
if this_state != last_state:
|
||||
if this_state == 'paused':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue