From bf37a65a1719593a7903e9ef2a898a38f655b9a5 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 5 Jan 2022 18:33:49 -0500 Subject: [PATCH] ignore cert mismatch for *.plex.direct (#244) * ignore cert mismatch for *.plex.direct add parameter to ignore cert mismatches for custom domains since plex tries to push everything through their generated subdomains and it may see a cert issue. * removed incorrect instruction no longer required --- Community/Tdarr_Plugin_goof1_URL_Plex_Refresh.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Community/Tdarr_Plugin_goof1_URL_Plex_Refresh.js b/Community/Tdarr_Plugin_goof1_URL_Plex_Refresh.js index a63fefe..95b52f3 100644 --- a/Community/Tdarr_Plugin_goof1_URL_Plex_Refresh.js +++ b/Community/Tdarr_Plugin_goof1_URL_Plex_Refresh.js @@ -36,7 +36,7 @@ const details = () => ({ type: 'text', }, tooltip: ` - Enter the IP address/URL for Plex. Must include http(s):// + Enter the IP address/URL for Plex. \\nExample:\\n 192.168.0.10 \\nExample:\\n @@ -201,7 +201,7 @@ const plugin = async (file, librarySettings, inputs, otherArguments) => { return response; } if (type === 'https') { await new Promise((resolve) => { - https.get(urlNoToken + token, (res) => { + https.get(urlNoToken + token, { rejectUnauthorized: false }, (res) => { checkReply(response, res.statusCode, urlNoToken); resolve(); }).on('error', (e) => {