Skip to content

Commit

Permalink
Updating function names due to deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktwin committed Jan 27, 2023
1 parent 8e68e8c commit 9a8cde2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utility/sync_watch_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ def sync_watch_status(watched, section, accountTo, userTo, same_server=False):
# .fetchItem retrieves a full object
fetch_check = sectionTo.fetchItem(watch_check.key)
# If item is already watched ignore
if not fetch_check.isWatched:
if not fetch_check.isPlayed:
# todo-me should watched count be synced?
fetch_check.markWatched()
fetch_check.markPlayed()
title = fetch_check._prettyfilename()
print("Synced watched status of {} to account {}...".format(title, userTo))

Expand Down Expand Up @@ -542,7 +542,7 @@ def sync_watch_status(watched, section, accountTo, userTo, same_server=False):
print("Request manually triggered to update watch status")
watchedFrom = check_users_access(plex_access, userFrom, serverFrom)
watched_item = watchedFrom.fetchItem(int(opts.ratingKey))
if not watched_item.isWatched:
if not watched_item.isPlayed:
print("Rating Key {} was not reported as watched in Plex for user {}".format(opts.ratingKey,
userFrom))
exit()
Expand Down

0 comments on commit 9a8cde2

Please sign in to comment.