mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
Fix getting user stream count for notifications
This commit is contained in:
parent
52a6f639b0
commit
5d58d9f5d4
1 changed files with 4 additions and 4 deletions
|
@ -275,15 +275,15 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, *
|
|||
for key in kwargs.pop('grandchild_keys', []):
|
||||
grandchild_metadata.append(pms_connect.get_metadata_details(rating_key=key))
|
||||
|
||||
# Session values
|
||||
session = session or {}
|
||||
|
||||
ap = activity_processor.ActivityProcessor()
|
||||
sessions = ap.get_sessions()
|
||||
stream_count = len(sessions)
|
||||
user_sessions = ap.get_sessions(user_id=session['user_id'])
|
||||
user_sessions = ap.get_sessions(user_id=session.get('user_id'))
|
||||
user_stream_count = len(user_sessions)
|
||||
|
||||
# Session values
|
||||
session = session or {}
|
||||
|
||||
# Generate a combined transcode decision value
|
||||
if session.get('video_decision','') == 'transcode' or session.get('audio_decision','') == 'transcode':
|
||||
transcode_decision = 'Transcode'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue