diff --git a/src/jellyfin.py b/src/jellyfin.py index cbdeb7a..cfa0243 100644 --- a/src/jellyfin.py +++ b/src/jellyfin.py @@ -234,7 +234,7 @@ def get_user_library_watched( if "MediaSources" in movie and movie["MediaSources"] != {}: if "UserData" not in movie: continue - + # Skip if not watched or watched less than a minute if ( movie["UserData"]["Played"] == True @@ -272,7 +272,7 @@ def get_user_library_watched( for show in watched_shows["Items"]: if not "UserData" in show: continue - + if "PlayedPercentage" in show["UserData"]: if show["UserData"]["PlayedPercentage"] > 0: watched_shows_filtered.append(show) diff --git a/src/plex.py b/src/plex.py index e5da617..e891809 100644 --- a/src/plex.py +++ b/src/plex.py @@ -69,13 +69,12 @@ def get_guids(item: Union[Movie, Episode], completed=True): f"Plex: {item.title} has no locations", 1, ) - + if not item.guids: logger( f"Plex: {item.title} has no guids", 1, - ) - + ) return { "title": item.title,