https://github.com/futuresharks/iptv-stream-cleaner
Reads an IPTV playlist file and removes all the bad streams that do not work
https://github.com/futuresharks/iptv-stream-cleaner
iptv iptv-channels iptv-m3u iptv-playlist playlist stream streaming-video
Last synced: 7 months ago
JSON representation
Reads an IPTV playlist file and removes all the bad streams that do not work
- Host: GitHub
- URL: https://github.com/futuresharks/iptv-stream-cleaner
- Owner: FutureSharks
- License: gpl-3.0
- Created: 2019-01-04T15:55:37.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-03T09:57:42.000Z (over 4 years ago)
- Last Synced: 2025-03-16T21:21:26.607Z (7 months ago)
- Topics: iptv, iptv-channels, iptv-m3u, iptv-playlist, playlist, stream, streaming-video
- Language: Python
- Size: 26.4 KB
- Stars: 29
- Watchers: 4
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IPTV Stream cleaner
Have you tried to download IPTV playlists only to find that a majority of the streams don't work? It's super annoying.
Here is a simply python script to filter out bad or non-functioning video streams from IPTV playlist files. It will check each playlist item, its video stream links and any nested playlist items.
It can also write a new playlist file containing the good streams.
Example:
```console
./stream-cleaner.py --input-file my-iptv-playlist-file.m3u --output-file filtered-playlist.m3u
AF: KTV PLUS | https://svs.itworkscdn.net/ktvpluslive/kplus.smil/playlist.m3u8
OK playlist data
AF: ANN | http://ns8.indexforce.com:1935/ann/ann/playlist.m3u8
OK playlist data
DE: MEDICAL | http://egyman.net:1978/live/180118/180118/6727.m3u8
ERROR playlist data
UK | 5 USA | http://vip.groupiptv.com:7000/live/janna1/janna1/3480.ts
ERROR video data
AF: AL HADATH | http://starmena.ercdn.net/libya-alhadath/libya-alhadath.m3u8
Loading playlist: http://starmena.ercdn.net/libya-alhadath/libya-alhadath.m3u8
Loading playlist: http://starmena.ercdn.net/libya-alhadath/libya-alhadath_480p.m3u8
Loading video: http://starmena.ercdn.net/libya-alhadath/libya-alhadath_480p-1546614961.ts
OK loading video data
OK playlist data
UK | 5 Star | http://vip.groupiptv.com:7000/live/janna1/janna1/3479.ts
ERROR video data
```It's perfect for use with [siptv.app](https://siptv.app) or similar apps.