check if rating key is episode or movie and is watched. if not, kill script
This commit is contained in:
parent
1a13d98cd2
commit
2d2d88f58c
@ -527,6 +527,7 @@ if __name__ == '__main__':
|
||||
print("Request manually triggered to update watch status")
|
||||
watchedFrom = check_users_access(plex_access, userFrom, serverFrom)
|
||||
watched_item = watchedFrom.fetchItem(opts.ratingKey)
|
||||
if watched_item.type in ["episode", "movie"]:
|
||||
if not watched_item.isWatched:
|
||||
print("Rating Key {} was not reported as watched in Plex for user {}".format(opts.ratingKey,
|
||||
userFrom))
|
||||
|
Loading…
Reference in New Issue
Block a user