Jump to content

A Couple of Bugs Located in Emby Client SDK for Python


Recommended Posts

Posted

@Luke, while developing Emby.MCP I discovered a couple of bugs in the Emby Client SDK for Python that I have fixed in my own Github fork (as branch 4.9.0.33-Beta-A01)  This was in the last available SDK version at time of writing - more recent betas seem to have SDKs that are largely void of files.

The bugs are:

  1. def auth_settings() in SampleCode/RestApi/Clients/Python/emby_client/configuration.py is missing this stanza:
    'embyauth':
    	{
    		'type': 'access_token',
    		'in': 'header',
    		'key': 'X-Emby-Token',
    		'value': self.get_api_key_with_prefix('access_token')
    	}

    without which it is impossible to use the standard user login Access Token with any API call that requires an authenticated user - only the all powerful API Key will work.
     

  2. def get_users_itemaccess_with_http_info() in SampleCode/RestApi/Clients/Python/emby_client/api/user_service_api.py is missing 'item_id' from all_params = []  and a corresponding query_params.append about 30 lines later.

    Without this, get_users_itemaccess() does not function as expected when compared to to carrying out the same tasks using the Emby web client (I captured the http requests with Wireshark to see what was actually being sent with the API call).
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...