I've just written an m3u filter program. Early stages, not fully documented yet, but it works. Would love some feedback and/or feature requests.

by cosha1

Hello all, I've written this tool as I didn't find anything out there that did what I wanted to. This tool allows you to fully customise your M3U files and remove the countless channels that you are unlikely to watch. It allows you to filter the channels, to recategorise them, and to rename them. All of this can be specified using in a yaml. There are a few quirks that I'm still working on, but it's getting there.

It can acts as a proxy for your M3U files so that you can point your IPTV player to it, or alternative it can simply spit out a new M3U file that you can then import.

I hope you can have some good use for this, and I'd appreciate any feedback and feature requests and bugs you encounter.

I've currently only uploaded Linux builds, however, once I have an automated manner of building it, this will include Windows and MacOS builds.

The link is: https://github.com/hoshsadiq/m3ufilter/releases

raidr1958

I'm not a high level user, I usually default to the APK builds, however it doesn't mean I can't appreciate what you're accomplishing.

Thank you for your time and effort.

keylogthis

If your player supports local/smb access to get the M3U like Kodi does then you can just make a bash script that will filter it. The way I have it setup is that it runs from my NAS every hour and then shares it with SMB to all the TVs running Kodi. I prefer this over running an additional server. But thanks, this will be easier for more people to use!

#!/bin/bash
cd directory.that.you.are.saving.the.file
wget -q -nv -O ./host.m3u 'url.to.your.hosts.m3u'
touch filter.m3u
echo "#EXTM3U" > filter.m3u
grep -E '^#EXTINF.*tvg\-name=\"([^#])*\".*group\-title=\"(USA ENTERTAINMENT|USA MOVIE NETWORKS|USA \& CANADA SPORTS|NFL PACKAGE|NHL PACKAGE|ESPN NETWORKS|FOX REGIONAL SPORTS|BR LIVE|MUSIC CHANNELS|VIP USA ENTERTAINMENT|VIP USA SPORTS NETWORKS|UK NEWS NETWORKS|USA NEWS NETWORKS)\"' -A 1 host.m3u | sed "/^--$/d" >> filter.m3u
etrain1

How would i use it?

paulie07

There are already programs like that. I was using one about 2 years ago to modify the m3u.

flynreelow

would love am MAC OS build!