Skip to content

Commit

Permalink
Plex: Only partially watched more than 1 min
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Jan 3, 2024
1 parent 035bfe0 commit fdecef4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def get_user_library_watched_show(show):
)
for episode
in show.episodes()
# Only include watched/partially-watched episodes
if episode in watched_episodes or episode.viewOffset > 0
# Only include watched or partially-watched more than a minute episodes
if episode in watched_episodes or episode.viewOffset >= 60000
],
operator.itemgetter(0)
)
Expand Down Expand Up @@ -124,8 +124,8 @@ def get_user_library_watched(user, user_plex, library):
for video
# Get all partially watched movies
in library_videos.search(inProgress=True)
# Ignore all partially watched movies watched under 1 minute
if video.viewOffset < 60000
# Only include partially-watched movies more than a minute
if video.viewOffset >= 60000
]

for guid in future_thread_executor(
Expand Down

0 comments on commit fdecef4

Please sign in to comment.