mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Fix write session to history only if library item
Some channel items, specifically Apple movie trailers, are counted as movie items. Make sure the rating_key is a number to filter these out.
This commit is contained in:
parent
e30e6dfe35
commit
a43efef28a
1 changed files with 3 additions and 1 deletions
|
@ -151,7 +151,9 @@ def check_active_sessions():
|
|||
kwargs=dict(stream_data=stream, notify_action='stop')).start()
|
||||
|
||||
# Write the item history on playback stop
|
||||
monitor_process.write_session_history(session=stream)
|
||||
# Just make sure that the ratingKey is indeed an integer
|
||||
if stream['rating_key'].isdigit():
|
||||
monitor_process.write_session_history(session=stream)
|
||||
|
||||
# Process the newly received session data
|
||||
for session in media_container:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue