mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-17 16:50:53 +00:00
Fix for #1173 ErsatzTV EPG not populating / fix for UTF-8 BOM processing
This commit is contained in:
parent
872725023b
commit
b01ec466f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue