blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.64k stars 305 forks source link

[Bug] Same server never evaluates to `true` in Sync Watch Status script #402

Open yuk7hi opened 8 months ago

yuk7hi commented 8 months ago

Describe the bug

Following condition never evaluates to true it seems. https://github.com/blacktwin/JBOPS/blob/c30850673a62c1dd41fcb10279c2212354055133/utility/sync_watch_status.py#L529-L530

Updating it as follows fixes the issue for me.

    if server.friendlyName == serverFrom:
        same_server = True

Link to script with bug/issue

https://github.com/blacktwin/JBOPS/blob/master/utility/sync_watch_status.py

Expected behavior

For a given userTo, if the value of serverTo is same as serverFrom then same_server should evaluate to true.

Desktop:

blacktwin commented 7 months ago

Makes sense. Would you mind making a PR for this?