Web Analytics Made Easy - Statcounter
But when I do normal curl on command line it works....", "dateCreated": "2019-03-26T06:42:46+00:00", "author": { "@type": "Person", "name": "Fietspompje" } } ] }

PHP Script I wrote to filter M3U Playlists to only the categories I care about

by andey
andey

I wrote this, because there are just thousands of absolutely useless channels, movies, and tv shows I don't care about. It slows down Perfect Player on boot. So this little script just downloads the m3u file, and grep's through the file and returns channels that match the group title I'm looking for.

nomnomtastic

Thank you for sharing this!

samixcv

Thank you. Thank you. Thank you.

Now, um... how does one run/use this code exactly? Lol

Fietspompje

I'd like to use it but for some reason it won't download my m3u...

Probably because curl sees the "&" in my url as a new rule.

How can one change this so curl sees the long string as a complete url?

Already tried ' ' around the URL, no succes.

EDIT: Still no luck even if I change the & to %26.

It keeps saying

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>301 Moved Permanently</title>

</head><body>

<h1>Moved Permanently</h1>

<p>The document has moved <a href="XXXXX">here</a>.</p>

</body></html>

But when I do normal curl on command line it works....