fix: add header-encoding env variable to fix gzip compression for jellyfin xml grab

If gzip compression is enabled for the tvapp2 webserver, this may cause Jellyfin to fail when fetching newest xml guide data.

to correct this, we create an env variable which allows us to disable gzip compression for `Accept-Encoding`
This commit is contained in:
2025-04-08 01:44:17 -07:00
parent 90c2295bb8
commit 1e8bdcddd8
2 changed files with 3 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ ENV DIR_RUN=/usr/bin/app
ENV URL_REPO="https://git.binaryninja.net/binaryninja/"
ENV WEB_IP="0.0.0.0"
ENV WEB_PORT=4124
ENV WEB_ENCODING="deflate, br"
ENV STREAM_QUALITY="hd"
ENV FILE_URL="urls.txt"
ENV FILE_M3U="playlist.m3u8"

View File

@@ -73,6 +73,7 @@ const envFileURL = process.env.FILE_URL || 'urls.txt';
const envFileM3U = process.env.FILE_M3U || 'playlist.m3u8';
const envFileXML = process.env.FILE_EPG || 'xmltv.xml';
const envFileTAR = process.env.FILE_TAR || 'xmltv.xml.gz';
const envWebEncoding = process.env.WEB_ENCODING || 'deflate, br';
const LOG_LEVEL = process.env.LOG_LEVEL || 10;
/*
@@ -480,7 +481,7 @@ async function fetchRemote( url )
mod
.get( url, {
headers: {
'Accept-Encoding': 'gzip, deflate, br'
'Accept-Encoding': envWebEncoding
}
}, ( resp ) =>
{