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:
@@ -151,6 +151,8 @@ def check_active_sessions():
|
|||||||
kwargs=dict(stream_data=stream, notify_action='stop')).start()
|
kwargs=dict(stream_data=stream, notify_action='stop')).start()
|
||||||
|
|
||||||
# Write the item history on playback stop
|
# Write the item history on playback stop
|
||||||
|
# Just make sure that the ratingKey is indeed an integer
|
||||||
|
if stream['rating_key'].isdigit():
|
||||||
monitor_process.write_session_history(session=stream)
|
monitor_process.write_session_history(session=stream)
|
||||||
|
|
||||||
# Process the newly received session data
|
# Process the newly received session data
|
||||||
|
|||||||
Reference in New Issue
Block a user