MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / _resolve_source_file

Function _resolve_source_file

apps/epg/tasks.py:4419–4424  ·  view source on GitHub ↗

Resolve the XML file path for an EPG source.

(epg_source)

Source from the content-addressed store, hash-verified

4417
4418
4419def _resolve_source_file(epg_source):
4420 """Resolve the XML file path for an EPG source."""
4421 file_path = epg_source.extracted_file_path or epg_source.file_path
4422 if not file_path:
4423 file_path = epg_source.get_cache_file()
4424 return file_path
4425
4426
4427_CHANNEL_ATTR_RE = re.compile(rb"""channel\s*=\s*(?:"([^"]+)"|'([^']+)')""")

Callers 2

build_programme_indexFunction · 0.85

Calls 1

get_cache_fileMethod · 0.80

Tested by

no test coverage detected