Dispatcharr/apps/epg/tests
None 1f97143bf8 fix: resolve HTML named entities in XMLTV files before parsing
lxml 6.0.2 with recover=True silently drops HTML named entities (e.g. é, î) that are not valid XML, causing channel names and program data to lose characters during EPG ingestion.

- Add preprocessing step in fetch_xmltv() that converts HTML named entities to Unicode while preserving XML-predefined entities
- Detect encoding from XML declaration, fall back to UTF-8 for unknown codecs, skip files that fail to decode cleanly
- Guard against entities resolving to XML-special characters and html.unescape partial matching edge cases
- Add 28 unit tests covering entity resolution, encoding detection, and file-level processing
2026-03-15 00:59:58 -05:00
..
__init__.py feat: add subtitle and season/episode to TV guide 2026-03-05 23:41:16 -06:00
test_entity_resolution.py fix: resolve HTML named entities in XMLTV files before parsing 2026-03-15 00:59:58 -05:00
test_serializers.py remove infer_is_live() 2026-03-12 16:01:35 -05:00