Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yuk7hi opened this issue Oct 26, 2023 · 1 comment · May be fixed by #406
Open

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

yuk7hi opened this issue Oct 26, 2023 · 1 comment · May be fixed by #406

Comments

@yuk7hi
Copy link

yuk7hi commented Oct 26, 2023

Describe the bug

Following condition never evaluates to true it seems.

if server == serverFrom:
same_server = True

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:

  • OS: macOS 13.6
  • Python Version: 3.11.5
  • PlexAPI version: 4.15.4
@blacktwin
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants