From ebc4a930b428c0bccb2ef70871a02e5e59507455 Mon Sep 17 00:00:00 2001 From: Maxime BACONNAIS Date: Wed, 7 Aug 2019 22:51:26 +0200 Subject: [PATCH] Hotfix: Support external Plex docker --- src/core/sessions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/sessions.js b/src/core/sessions.js index fc30b73..6ccdd83 100644 --- a/src/core/sessions.js +++ b/src/core/sessions.js @@ -81,15 +81,16 @@ SessionsManager.parseFFmpegParameters = async (args = [], env = {}, optimizeMode // Progress if (e.indexOf('/progress') !== -1) - return (e.replace(plexUrl(), '{INTERNAL_TRANSCODER}')); + return (e.replace(plexUrl(), '{INTERNAL_TRANSCODER}').replace('http://127.0.0.1:32400/', '{INTERNAL_TRANSCODER}')); // Manifest and seglist if (e.indexOf('/manifest') !== -1 || e.indexOf('/seglist') !== -1) - return (e.replace(plexUrl(), '{INTERNAL_TRANSCODER}')); + return (e.replace(plexUrl(), '{INTERNAL_TRANSCODER}').replace('http://127.0.0.1:32400/', '{INTERNAL_TRANSCODER}')); // Other let parsed = e; parsed = replaceAll(parsed, plexUrl(), publicUrl()) + parsed = replaceAll(parsed, 'http://127.0.0.1:32400/', publicUrl()) parsed = replaceAll(parsed, config.plex.path.sessions, publicUrl() + 'api/sessions/') parsed = replaceAll(parsed, config.plex.path.usr, '{INTERNAL_PLEX_SETUP}') return parsed;