Skip to content

Instantly share code, notes, and snippets.

View andey's full-sized avatar
🎧
Listening to Audiobooks

Andrew Wei andey

🎧
Listening to Audiobooks
View GitHub Profile
@andey
andey / IPTV M3U filter
Created December 29, 2018 23:56
Filter out the garbage channels, and only show me what I want to see
<?php
// download the file
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "<M3U_LINK>");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close ($ch);
// write to file