Ejemplo n.º 1
0
 def client_factory(self):
     client = JellyfinClient()
     client.config.data['app.default'] = True
     client.config.app(USER_APP_NAME, CLIENT_VERSION, settings.player_name, settings.client_uuid)
     client.config.data['http.user_agent'] = USER_AGENT
     client.config.data['auth.ssl'] = True
     return client
Ejemplo n.º 2
0
 def client_factory(config_entry):
     client = JellyfinClient(allow_multiple_clients=True)
     client.config.data["app.default"] = True
     client.config.app(
         USER_APP_NAME, CLIENT_VERSION, USER_APP_NAME, config_entry[CONF_CLIENT_ID]
     )
     client.config.data["auth.ssl"] = config_entry[CONF_VERIFY_SSL]
     return client
Ejemplo n.º 3
0
 def client_factory():
     client = JellyfinClient(allow_multiple_clients=True)
     client.config.data["app.default"] = True
     client.config.app(USER_APP_NAME, CLIENT_VERSION, settings.player_name,
                       settings.client_uuid)
     client.config.data["http.user_agent"] = USER_AGENT
     client.config.data["auth.ssl"] = not settings.ignore_ssl_cert
     return client