From d1262e3b70a85073dabac60bbbcc66a3c07ad263 Mon Sep 17 00:00:00 2001 From: Stefan Cosma Date: Wed, 21 Feb 2024 22:10:45 +0200 Subject: [PATCH] Fixes isinstance call --- plexorcist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexorcist.py b/plexorcist.py index 256c3a8..c3fd251 100755 --- a/plexorcist.py +++ b/plexorcist.py @@ -239,7 +239,7 @@ def filter_videos(self, videos): # Check if video was watched and / or is older than def is_watched_video(video): return ( - isinstance(video) + isinstance(video, dict) and video.get("@viewCount") and int(video["@viewCount"]) >= 1 and (