Skip to content

Commit

Permalink
Hotfix: Support external Plex docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxou44 authored Aug 7, 2019
1 parent 35a5930 commit ebc4a93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ebc4a93

Please sign in to comment.