Rework notification logic to only build parameters once per action

* Instead of rebuilding for each notification agent
* Change season/episode to use season poster
* Change album/track to use album art
This commit is contained in:
JonnyWong16 2016-10-15 15:46:18 -07:00 committed by JonnyWong16
parent f45bd49421
commit ffdd9c9cbf
7 changed files with 199 additions and 181 deletions

View file

@ -47,7 +47,7 @@ def check_active_sessions(ws_request=False):
media_container = session_list['sessions']
# Check our temp table for what we must do with the new streams
db_streams = monitor_db.select('SELECT * FROM sessions')
db_streams = monitor_process.get_sessions()
for stream in db_streams:
if any(d['session_key'] == str(stream['session_key']) and d['rating_key'] == str(stream['rating_key'])
for d in media_container):