Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Apr 15, 2024
1 parent ae71ca0 commit 5b1933c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/jellyfin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions src/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5b1933c

Please sign in to comment.