mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 09:35:42 -04:00
chore: add comment to new jellyfin encoding fix
This commit is contained in:
@@ -473,6 +473,24 @@ async function prepareGzip( )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
@note Jellyfin Users
|
||||||
|
Originally, this node webserver enabled gzip compression for the value `Accept-Encoding`. Doing this
|
||||||
|
may cause an error to appear in Jellyfin logs / console when attempting to fetch the latest guide data
|
||||||
|
from the tvapp2 xml file.
|
||||||
|
|
||||||
|
[ERR] [27] Jellyfin.LiveTv.Guide.GuideManager: Error getting programs for channel XXXXXXXXXXXXXXX (Source 2)
|
||||||
|
System.Xml.XmlException: '', hexadecimal value 0x1F, is an invalid character. Line 1, position 1.
|
||||||
|
|
||||||
|
To fix the error, we create a customizable env variable that allows the user to override the encoding header.
|
||||||
|
We change the following:
|
||||||
|
'Accept-Encoding': 'gzip, deflate, br'
|
||||||
|
to
|
||||||
|
'Accept-Encoding': 'deflate, br'
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
async function fetchRemote( url )
|
async function fetchRemote( url )
|
||||||
{
|
{
|
||||||
return new Promise( ( resolve, reject ) =>
|
return new Promise( ( resolve, reject ) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user