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 (