python3 - <<'PY'
import re

FILE = "/opt/epg/LiveTV.txt"

with open(FILE, encoding="utf-8", errors="ignore") as f:
    for line in f:
        if line.startswith("#EXTINF"):
            match = re.search(r'tvg-name="([^"]*)"', line)

            if match:
                print(f'{match.group(1)} -> {line.strip()}')
PY