[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECV502DE8N1JB6EN9V6SHF":3,"skill-same:01M7ECV502DE8N1JB6EN9V6SHF":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7ECV502DE8N1JB6EN9V6SHF","iptv-streaming",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fmedia\u002Fiptv-streaming\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# iptv-streaming\n\n# IPTV Streaming & Playlist Curation\n\nCovers two recurring jobs: (1) diagnosing why a stream URL fails in VLC, and\n(2) building a verified-live m3u playlist from the iptv-org repo.\n\n## VLC \"can't open the MRL\" — diagnose the URL, not VLC\n\nVLC's error names no cause. Before touching VLC config, probe the URL directly:\n\n```bash\n# HEAD-ish: shows redirect target and final code\ncurl -sSI \"\u003Curl>\" | head -30\n\n# Follow redirects, full GET, look at final status + body\ncurl -sSL -o \u002Fdev\u002Fnull -w \"code=%{http_code} size=%{size_download} type=%{content_type}\\n\" \"\u003Curl>\" --max-time 20\n```\n\nRead the result:\n- **302 + Location header** → the URL is a redirect stub. Follow it before judging.\n- **403 + JSON body** → upstream CDN rejection. `{\"status_code\":403,\"message\":\"channel not permitted for partner\"}` is geo-blocking or an expired source. Not fixable from the client.\n- **200 + `#EXTM3U`** → manifest is live; if VLC still fails it's a VLC\u002Fnetwork issue.\n- **200 + HTML** → wrong endpoint, not a stream.\n\nCommon upstream failure classes (all NOT client-side bugs):\n- Pluto TV `jmp2.uk` stubs that 302 to `stitcher-ipv4.pluto.tv` and return\n  `channel not permitted for partner` — geo\u002Fpartner block.\n- Samsung\u002FPluto embeds that need deviceType query params.\n- Streams that need a `Referer` or `User-Agent` header.\n\nThe fix is almost always: pick a different source from the playlist, don't\nreconfigure VLC.\n\n## Building a verified-live playlist from iptv-org\n\nThe repo has no per-sport playlists — it's organized by country\n(`streams\u002F{cc}.m3u`, ~326 files). There is no `us_sports.m3u`; that 404s.\n\nWorkflow:\n\n1. **Pull regional playlists** (no sport-specific files exist):\n   ```bash\n   for f in us uk de es fr it in ca au; do\n     curl -sS \"https:\u002F\u002Fraw.githubusercontent.com\u002Fiptv-org\u002Fiptv\u002Fmaster\u002Fstreams\u002F${f}.m3u\" -o ${f}.m3u\n   done\n   ```\n\n2. **Parse m3u → channels**: every `#EXTINF` line is followed by the URL.\n   Extract `tvg-name`, `group-title`, `tvg-logo` with regex. One playlist file\n   can hold 200-3000 channels.\n\n3. **Filter by category** with a keyword regex on name + group (sport|espn|bein|\n   dazn|tennis|golf|nfl|nba|mlb|nhl|ufc|f1|...).\n\n4. **Live-probe in parallel** (ThreadPoolExecutor, 25-30 workers):\n   ```bash\n   curl -sS -A \"Mozilla\u002F5.0\" -L --max-time 12 \"\u003Curl>\"\n   ```\n   Alive = body contains `#EXTM3U` (HLS manifest) or starts with `\\x47`\n   (MPEG-TS sync byte). A 206\u002Fpartial-content HEAD check alone gives false\n   positives — do a real GET and inspect the body.\n\n5. **Filter out junk**: drop any entry whose name contains `geo-block` or\n   `not 24\u002F7`. They'll fail on open.\n\n6. **Dedup by URL**, then write the m3u:\n   ```python\n   lines = ['#EXTM3U']\n   for c in clean:\n       lines.append(f'#EXTINF:-1 tvg-name=\"{c[\"name\"]}\" group-title=\"Sports\",{c[\"name\"]}')\n       lines.append(c['url'])\n   ```\n\nExpected yield: ~3800 channels from 9 regions → ~175 sport-matching → ~104\nlive after body check → ~89 clean after geo\u002F24-7 filter. Not every \"live\"\nmanifest decodes — some are region-locked at the video layer.\n\n## Reliable free sports sources (verified pattern)\n\nOfficial free feeds that consistently return live manifests: FIFA+ US,\nbeIN SPORTS XTRA, NBC Sports NOW, ESPN U, Fox Sports 1, NBA TV, MLB Strike\nZone, Tennis Channel, More Than Sports TV, Real Madrid TV, talkSPORT, DD\nSports, Star Sports (India), Cricket Gold.\n\n## Pitfalls\n\n- **Parallel curl belongs in Python threads, not shell `&`** — the terminal\n  tool rejects foreground commands with `&` backgrounding.\n- Don't trust a HEAD probe; range-request 206s lie. Always GET and sniff the body.\n- iptv-org churns: a channel alive today is dead next week. Re-probe before\n  telling the user a specific URL works.\n- The same channel name often appears 2-6 times (multiple CDN mirrors).\n  Dedup by URL, not by name.\n\n## See also\n\n- `system-administration\u002Fwifi-connectivity-troubleshooting` — when streaming\n  drops are a network-layer problem, not a URL problem.\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fmedia\u002Fiptv-streaming","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill iptv-streaming",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill iptv-streaming",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill iptv-streaming","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fmedia\u002Fiptv-streaming\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",324,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fmedia\u002Fiptv-streaming\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]