Skip to content

Commit

Permalink
Fixes isinstance call
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbc committed Feb 21, 2024
1 parent 8682cbb commit d1262e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plexorcist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit d1262e3

Please sign in to comment.