Updated Plex.tv package template

This commit is contained in:
Luke Hagar
2023-04-19 22:42:29 -05:00
parent d3a82b8467
commit 1d03f750b9
2 changed files with 2 additions and 4 deletions

View File

@@ -16,6 +16,4 @@ const config = new Configuration({
// new DevicesApi(config).getDevices().then((resp) => console.log(resp));
new PlexTvApi(config)
.getUserDetails({ baseURL: "https://plex.tv/api/v2" })
.then((resp) => console.log(resp));
new PlexTvApi(config).getUserDetails().then((resp) => console.log(resp));

View File

@@ -41,7 +41,7 @@ export class BaseAPI {
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
this.basePath = "https://plex.tv/api/v2" || this.basePath;
}
}
};