Skip to content

Commit

Permalink
Upgraded EAE to 1978
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloromeo committed Sep 8, 2023
1 parent 8f796b2 commit 14190ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions worker/app/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd /usr/lib/plexmediaserver
CLUSTERPLEX_PLEX_VERSION=$(strings "pms_original" | grep -P '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)-[0-9a-f]{9}')
CLUSTERPLEX_PLEX_CODECS_VERSION=$(strings "Plex Transcoder" | grep -Po '[0-9a-f]{7}-[0-9]{4}$')
CLUSTERPLEX_PLEX_EAE_VERSION=$(printf "eae-`strings "pms_original" | grep -P '^EasyAudioEncoder-eae-[0-9a-f]{7}-$' | cut -d- -f3`-42")
EAE_VERSION=1806 # fixed for now
EAE_VERSION=1978 # fixed for now

echo "CLUSTERPLEX_PLEX_VERSION => '${CLUSTERPLEX_PLEX_VERSION}'"
echo "CLUSTERPLEX_PLEX_CODECS_VERSION => '${CLUSTERPLEX_PLEX_CODECS_VERSION}'"
Expand Down Expand Up @@ -72,7 +72,9 @@ else
echo "Downloading EasyAudioEncoder version => ${EAE_VERSION}"
UUID=$(cat /proc/sys/kernel/random/uuid)
# download eae definition to eae.xml
curl -s -o eae.xml "https://plex.tv/api/codecs/easyaudioencoder?build=${CLUSTERPLEX_PLEX_CODEC_ARCH}&deviceId=${UUID}&oldestPreviousVersion=${CLUSTERPLEX_PLEX_VERSION}&version=${EAE_VERSION}"
EAE_XML="https://plex.tv/api/codecs/easyaudioencoder?build=${CLUSTERPLEX_PLEX_CODEC_ARCH}&deviceId=${UUID}&oldestPreviousVersion=${CLUSTERPLEX_PLEX_VERSION}&version=${EAE_VERSION}"
echo "Downloading EAE_XML => ${EAE_XML}"
curl -s -o eae.xml "${EAE_XML}"

# extract codec url
EAE_CODEC_URL=$(grep -Pio 'Codec url="\K[^"]*' eae.xml)
Expand Down

0 comments on commit 14190ae

Please sign in to comment.