mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add support for commercial marker triggers
This commit is contained in:
parent
32bb98e8c1
commit
6b0b3a476f
5 changed files with 36 additions and 8 deletions
|
@ -661,8 +661,12 @@ class ActivityProcessor(object):
|
|||
[session['write_attempts'] + 1, session_key])
|
||||
|
||||
def set_marker(self, session_key=None, marker_idx=None, marker_type=None):
|
||||
marker_args = [int(marker_type == 'intro'), int(marker_type == 'credits')]
|
||||
self.db.action('UPDATE sessions SET intro = ?, credits = ?, marker = ? '
|
||||
marker_args = [
|
||||
int(marker_type == 'intro'),
|
||||
int(marker_type == 'commercial'),
|
||||
int(marker_type == 'credits')
|
||||
]
|
||||
self.db.action('UPDATE sessions SET intro = ?, commercial = ?, credits = ?, marker = ? '
|
||||
'WHERE session_key = ?',
|
||||
marker_args + [marker_idx, session_key])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue