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

player: Avoid getting properties from unavailable player #36

Merged
merged 1 commit into from
Nov 8, 2020

Conversation

pespin
Copy link
Contributor

@pespin pespin commented Jul 18, 2020

It makes no sense asking for playerid=1 if it doesn't exist.
Furthermore, it makes Kodi return:
"""
{"error":{"code":-32100,"message":"Failed to execute method."},"id":2,"jsonrpc":"2.0"}
"""
which makes the entire context menu fail and show only an error.

Fixes: #34

@coveralls
Copy link

coveralls commented Jul 18, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling a0a37fa on pespin:pespin/fix into 8a26b21 on regseb:master.

It makes no sense asking for playerid=1 if it doesn't exist.
Furthermore, it makes Kodi return:
"""
{"error":{"code":-32100,"message":"Failed to execute method."},"id":2,"jsonrpc":"2.0"}
"""
which makes the entire context menu fail and show only an error.

Fixes: regseb#34
@pespin
Copy link
Contributor Author

pespin commented Sep 19, 2020

Hi, any feedback on this (and related ticket)? I would like to get this merged ASAP since it prevents me from using kodi sometimes.

@regseb regseb added the bug label Oct 3, 2020
@pespin
Copy link
Contributor Author

pespin commented Oct 24, 2020

Hi,
can this PR be merged? I submitted it like 3 months ago, and not having these changes prevents me from using the official plugin...

@regseb regseb merged commit f9c0536 into regseb:master Nov 8, 2020
@pespin pespin deleted the pespin/fix branch November 8, 2020 15:32
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 this pull request may close these issues.

top-right menu with red background and "Unknown error", "Failed to execute method."
3 participants