From b01ec466f17385e98f50babde02dc1f25e38550e Mon Sep 17 00:00:00 2001 From: dwot <68145+dwot@users.noreply.github.com> Date: Sat, 4 Apr 2026 22:15:28 -0400 Subject: [PATCH] Fix for #1173 ErsatzTV EPG not populating / fix for UTF-8 BOM processing --- apps/epg/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/epg/tasks.py b/apps/epg/tasks.py index 0d05552f..a0a5f42e 100644 --- a/apps/epg/tasks.py +++ b/apps/epg/tasks.py @@ -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'') if decl_end >= 0: