Fix for #1173 ErsatzTV EPG not populating / fix for UTF-8 BOM processing

This commit is contained in:
dwot 2026-04-04 22:15:28 -04:00
parent 872725023b
commit b01ec466f1
No known key found for this signature in database
GPG key ID: 1B39BA23BC6A0CDC

View file

@ -114,7 +114,7 @@ def _open_xmltv_file(file_path: str):
return f
# Insert the DOCTYPE after the XML declaration if one is present.
stripped = start.lstrip()
stripped = start.lstrip(b'\xef\xbb\xbf').lstrip()
if stripped.startswith(b'<?xml'):
decl_end = start.find(b'?>')
if decl_end >= 0: