add a default lidarr url environment variable to actually match the readme.

This commit is contained in:
Chase 2023-01-17 10:54:44 -06:00
parent 74cd40f41a
commit ef1715a340
Signed by: chase
GPG Key ID: 9EC29E797878008C
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import fetch from 'node-fetch';
config();
let lidarrUrl = process.env.LIDARR_URL;
let lidarrUrl = process.env.LIDARR_URL || `http://localhost:8686`;
if (lidarrUrl.endsWith(`/`))
lidarrUrl = lidarrUrl.slice(0, -1);