From fc80f5056013411da70a5a1cf513a268c3437b95 Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Tue, 11 Apr 2023 08:57:49 -0600 Subject: [PATCH] Fix codeql issues --- src/jellyfin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jellyfin.py b/src/jellyfin.py index d54afef..f17f445 100644 --- a/src/jellyfin.py +++ b/src/jellyfin.py @@ -170,7 +170,7 @@ async def get_user_library_watched( ) for movie in watched["Items"]: - if "MediaSources" in movie and movie["MediaSources"] is not {}: + if "MediaSources" in movie and movie["MediaSources"] != {}: logger( f"Jellyfin: Adding {movie['Name']} to {user_name} watched list", 3, @@ -188,7 +188,7 @@ async def get_user_library_watched( # Get all partially watched movies greater than 1 minute for movie in in_progress["Items"]: - if "MediaSources" in movie and movie["MediaSources"] is not {}: + if "MediaSources" in movie and movie["MediaSources"] != {}: if movie["UserData"]["PlaybackPositionTicks"] < 600000000: continue