Skip to content

Needs control parameter to be a PlexControl instance! #31

@Zefau

Description

@Zefau

Hi there,

thanks for the library. I'm just about to implement it and started retrieving clients as a first try via:

const PlexControl = require('plex-control').PlexControl;

let control = PlexControl('192.168.178.5');
control.getClients().then(res => console.log(JSON.stringify(res))).catch(e => console.error(e))

This fails with the error Needs control parameter to be a PlexControl instance!.

Looking up the source code at the specified line in the error trace brings me to:

this.extHelper = new ExtensionHelper(this, this.api);

Which hands 2 arguments to the function ExtensionHelper, which only expects one argument as it looks like?

function ExtensionHelper(control) {

Am I doing something wrong or is it the code?

Thanks,
Zefau

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions