Skip to content

Commit

Permalink
Plex: Use updateTimeline instead of updateProgress
Browse files Browse the repository at this point in the history
Not all accounts have access to updateProgress, so use updateTimeline instead

Signed-off-by: Luigi311 <[email protected]>
  • Loading branch information
luigi311 committed Dec 8, 2023
1 parent 2ec88d4 commit 53e2991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def update_user_watched(user, user_plex, library, videos, dryrun):
msg = f"Plex: {movies_search.title} as partially watched for {floor(video_status['time'] / 60_000)} minutes for {user.title} in {library}"
if not dryrun:
logger(msg, 5)
movies_search.updateProgress(video_status["time"])
movies_search.updateTimeline(video_status["time"])
else:
logger(msg, 6)

Expand Down Expand Up @@ -353,7 +353,7 @@ def update_user_watched(user, user_plex, library, videos, dryrun):
msg = f"Plex: {show_search.title} {episode_search.title} as partially watched for {floor(video_status['time'] / 60_000)} minutes for {user.title} in {library}"
if not dryrun:
logger(msg, 5)
episode_search.updateProgress(video_status["time"])
episode_search.updateTimeline(video_status["time"])
else:
logger(msg, 6)

Expand Down

0 comments on commit 53e2991

Please sign in to comment.