-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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:
node-plex-control/lib/control.js
Line 26 in 166657c
| this.extHelper = new ExtensionHelper(this, this.api); |
Which hands 2 arguments to the function ExtensionHelper, which only expects one argument as it looks like?
node-plex-control/lib/ext-helper.js
Line 3 in 166657c
| function ExtensionHelper(control) { |
Am I doing something wrong or is it the code?
Thanks,
Zefau
Metadata
Metadata
Assignees
Labels
No labels