Resolve the XML file path for an EPG source.
(epg_source)
| 4417 | |
| 4418 | |
| 4419 | def _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*(?:"([^"]+)"|'([^']+)')""") |
no test coverage detected