blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.66k stars 308 forks source link

How to for sync_watch_status ? #337

Closed Ltek closed 1 year ago

Ltek commented 2 years ago

I have read the script but its not very clear on the setup hoping someone can help...

Set Conditions: [{username} | {is} | {user_to_sync_from} ] Seems this argument cannot be put directly into "Condition Logic" as the instructions seem to imply. So, are we supposted to create a condition that selects from the drop-down menus 'Username' 'is' and enter {user_to_sync_from} in the 3rd box (which is text entry)?

Script Arguments:
 Select: Notify on Watched
 Arguments: --ratingKey {rating_key} --userFrom Tautulli=Tautulli --userTo "Username2=Server1" "Username3=Server1"

Which are the variables we need to change?

For instance, I have four users (MediaRoom, LivingRoom, Office, PlayRoom) and one server (Plex @ 192.168.2.60). Is this correct ...

--ratingKey {rating_key} --userFrom Tautulli=Tautulli --userTo "MediaRoom=Plex" "LivingRoom=Plex" "PlayRoom=Plex" "Office=Plex"

blacktwin commented 2 years ago

image

If you Ltek watch something this script will execute, thus using your user's watch status to update the --userTo users.

--ratingKey {rating_key} --userFrom Tautulli=Tautulli --userTo "MediaRoom=Plex" "LivingRoom=Plex" "PlayRoom=Plex" "Office=Plex"

If Plex is the name of your server, then yes.

Ltek commented 2 years ago

@blacktwin thx for the help. I got past my errors using this...

Condition == Username is MediaRoom

Script Settings -> 'Watched' Script Arguments == --ratingKey {rating_key} --userFrom Tautulli=Tautulli --userTo "LivingRoom=Plex" "PlayRoom=Plex" "Office=Plex"

Wish there was a single Notification that could simply sync all Users 'watched status' :-(

blacktwin commented 2 years ago

Just add more usernames to your condition.