Only update the database sessions every 60 seconds while playing

This commit is contained in:
JonnyWong16 2018-01-07 17:10:33 -08:00
parent 9b4536f132
commit 157af84226
5 changed files with 21 additions and 8 deletions

View file

@ -951,7 +951,8 @@ class DataFactory(object):
'transcode_hw_encoding': item['transcode_hw_encoding'],
'media_type': item['media_type'],
'title': item['title'],
'grandparent_title': item['grandparent_title']
'grandparent_title': item['grandparent_title'],
'current_session': 1 if session_key else 0
}
stream_output = {k: v or '' for k, v in stream_output.iteritems()}