Register plex instance with token parameter for authenticated calls to plex (#144)

This commit is contained in:
2022-09-25 13:39:07 +02:00
committed by GitHub
parent 696f9f989c
commit 6732ed988d
5 changed files with 18 additions and 5 deletions

View File

@@ -3,7 +3,10 @@ import Configuration from "../../../config/configuration.js";
const configuration = Configuration.getInstance();
const plex = new Plex(configuration.get("plex", "ip"));
const plex = new Plex(
configuration.get("plex", "ip"),
configuration.get("plex", "token")
);
/**
* Controller: Search plex for movies, shows and episodes by query