From 982c893c4989e2733d7e38562c36c128556f908f Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:16:01 -0700 Subject: [PATCH] Use helper function to cast play duration to int --- plexpy/datafactory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/datafactory.py b/plexpy/datafactory.py index 3db32a51..bd5a7c31 100644 --- a/plexpy/datafactory.py +++ b/plexpy/datafactory.py @@ -270,7 +270,7 @@ class DataFactory(object): item['user_thumb'] = users_lookup.get(item['user_id']) - filter_duration += int(item['play_duration']) + filter_duration += helpers.cast_to_int(item['play_duration']) if item['media_type'] == 'episode' and item['parent_thumb']: thumb = item['parent_thumb']