mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 03:28:31 -07:00
Monitor stream intro/credits marker activity
This commit is contained in:
parent
a8539b2927
commit
9a152932ee
3 changed files with 226 additions and 181 deletions
|
@ -660,8 +660,18 @@ class ActivityProcessor(object):
|
|||
self.db.action('UPDATE sessions SET write_attempts = ? WHERE session_key = ?',
|
||||
[session['write_attempts'] + 1, session_key])
|
||||
|
||||
def set_intro(self, session_key=None):
|
||||
self.db.action('UPDATE sessions SET intro = intro + 1 '
|
||||
'WHERE session_key = ?',
|
||||
[session_key])
|
||||
|
||||
def set_credits(self, session_key=None):
|
||||
self.db.action('UPDATE sessions SET credits = credits + 1 '
|
||||
'WHERE session_key = ?',
|
||||
[session_key])
|
||||
|
||||
def set_watched(self, session_key=None):
|
||||
self.db.action('UPDATE sessions SET watched = ?'
|
||||
self.db.action('UPDATE sessions SET watched = ? '
|
||||
'WHERE session_key = ?',
|
||||
[1, session_key])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue