# live_lite.m3u の先頭 20 行を確認（M3U フォーマット確認）
curl -s "https://raw.githubusercontent.com/CCSH/IPTV/refs/heads/main/live_lite.m3u" | head -20

# チャンネル名一覧を抽出（EXTINF 行からカンマ以降を取得）
curl -s "https://raw.githubusercontent.com/CCSH/IPTV/refs/heads/main/live_lite.m3u" | grep "^#EXTINF" | sed 's/.*,//' | head -30

# CCTV1 の台標 URL を生成して HTTP ステータスを確認
echo "台標URL: https://raw.githubusercontent.com/CCSH/IPTV/refs/heads/main/logo/CCTV1.png"
curl -o /dev/null -s -w "%{http_code}\n" "https://raw.githubusercontent.com/CCSH/IPTV/refs/heads/main/logo/CCTV1.png"

# EPG XML の冒頭を確認（番組表構造チェック）
curl -s "https://raw.githubusercontent.com/CCSH/IPTV/refs/heads/main/e.xml" | head -30
