From a44709a43d99bebc44f309d8d56173270809975e Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Thu, 12 Dec 2019 18:44:55 -0800 Subject: [PATCH] Cast section_id to int in websocket timeline data --- plexpy/activity_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/activity_handler.py b/plexpy/activity_handler.py index 9f7ee491..3f2cb368 100644 --- a/plexpy/activity_handler.py +++ b/plexpy/activity_handler.py @@ -385,7 +385,7 @@ class TimelineHandler(object): identifier = self.timeline.get('identifier') state_type = self.timeline.get('state') media_type = media_types.get(self.timeline.get('type')) - section_id = self.timeline.get('sectionID', 0) + section_id = helpers.cast_to_int(self.timeline.get('sectionID', 0)) title = self.timeline.get('title', 'Unknown') metadata_state = self.timeline.get('metadataState') media_state = self.timeline.get('mediaState')