mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 21:51:14 -07:00
Hack to check for live tv stopped websocket event
This commit is contained in:
parent
94b00c75c2
commit
1245b4fbd3
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ class ActivityHandler(object):
|
||||||
if 'sessionKey' in self.timeline:
|
if 'sessionKey' in self.timeline:
|
||||||
if str(self.timeline['sessionKey']).isdigit():
|
if str(self.timeline['sessionKey']).isdigit():
|
||||||
return True
|
return True
|
||||||
|
# Hack since sessionKey is not in the live TV stopped event
|
||||||
|
elif self.timeline.get('key', '').startswith('/livetv/sessions') and self.timeline.get('state') == 'stopped':
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue