correct issue when using ratingKey with Plex to Plex
Issue reported in Plex forums.
This commit is contained in:
parent
22ff42a373
commit
514151e69b
@ -540,7 +540,7 @@ if __name__ == '__main__':
|
||||
if userFrom != "Tautulli":
|
||||
print("Request manually triggered to update watch status")
|
||||
watchedFrom = check_users_access(plex_access, userFrom, serverFrom)
|
||||
watched_item = watchedFrom.fetchItem(opts.ratingKey)
|
||||
watched_item = watchedFrom.fetchItem(int(opts.ratingKey))
|
||||
if not watched_item.isWatched:
|
||||
print("Rating Key {} was not reported as watched in Plex for user {}".format(opts.ratingKey,
|
||||
userFrom))
|
||||
@ -555,7 +555,8 @@ if __name__ == '__main__':
|
||||
|
||||
for user in plexTo:
|
||||
username, server = user
|
||||
sync_watch_status([watched_item], watched_item.libraryName, server, username)
|
||||
library = server.library.sectionByID(watched_item.librarySectionID)
|
||||
sync_watch_status([watched_item], library.title, server, username)
|
||||
|
||||
else:
|
||||
print("You aren't using this script correctly... bye!")
|
||||
|
Loading…
Reference in New Issue
Block a user