Updating function names due to deprecation
This commit is contained in:
parent
8e68e8ce7e
commit
9a8cde23bd
@ -396,9 +396,9 @@ def sync_watch_status(watched, section, accountTo, userTo, same_server=False):
|
|||||||
# .fetchItem retrieves a full object
|
# .fetchItem retrieves a full object
|
||||||
fetch_check = sectionTo.fetchItem(watch_check.key)
|
fetch_check = sectionTo.fetchItem(watch_check.key)
|
||||||
# If item is already watched ignore
|
# If item is already watched ignore
|
||||||
if not fetch_check.isWatched:
|
if not fetch_check.isPlayed:
|
||||||
# todo-me should watched count be synced?
|
# todo-me should watched count be synced?
|
||||||
fetch_check.markWatched()
|
fetch_check.markPlayed()
|
||||||
title = fetch_check._prettyfilename()
|
title = fetch_check._prettyfilename()
|
||||||
print("Synced watched status of {} to account {}...".format(title, userTo))
|
print("Synced watched status of {} to account {}...".format(title, userTo))
|
||||||
|
|
||||||
@ -542,7 +542,7 @@ if __name__ == '__main__':
|
|||||||
print("Request manually triggered to update watch status")
|
print("Request manually triggered to update watch status")
|
||||||
watchedFrom = check_users_access(plex_access, userFrom, serverFrom)
|
watchedFrom = check_users_access(plex_access, userFrom, serverFrom)
|
||||||
watched_item = watchedFrom.fetchItem(int(opts.ratingKey))
|
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,
|
print("Rating Key {} was not reported as watched in Plex for user {}".format(opts.ratingKey,
|
||||||
userFrom))
|
userFrom))
|
||||||
exit()
|
exit()
|
||||||
|
Loading…
Reference in New Issue
Block a user