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

removing a friend when they haven' accepted an invite, fails. #767

Closed
Jomack16 opened this issue Jun 1, 2021 · 2 comments · Fixed by #849
Closed

removing a friend when they haven' accepted an invite, fails. #767

Jomack16 opened this issue Jun 1, 2021 · 2 comments · Fixed by #849
Labels

Comments

@Jomack16
Copy link

Jomack16 commented Jun 1, 2021

Found that the REMOVEINVITE variable in myplex.py had a URL of "'https://plex.tv/api/invites/requested/{userId}?friend=1&server=1&home=1'"

Because REMOVEINVITE is the alternative when evaluating user.friend to False on line 384 of myplex.py, the URL should read: "'https://plex.tv/api/invites/requested/{userId}?friend=1&server=1&home=0'"

Verified this by manually removing a user that hadn't accepted an invite, while watching the call that was made in DevTools.
An example of those request headers is attached.

RemoveUserThatHasntAcceptedInvite-REQUEST HEADERS EXAMPLE.txt

@blacktwin
Copy link
Collaborator

I want to think that the params are relative to the the to be removed user. I thought I tested all the different combinations when I added/changed that and found that True for all params work universally.

@brianmiller
Copy link

brianmiller commented Aug 16, 2021

So how do we remove a pending invite with plexapi?

And list pending invites...

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

Successfully merging a pull request may close this issue.

4 participants