Giter VIP home page Giter VIP logo

iptv-stream-cleaner's Introduction

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:

./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 or similar apps.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.