Skip to content

๐Ÿ“บ ๐Ÿ“– Extract XMLTV EPG from the init7 IPTV backend

Notifications You must be signed in to change notification settings

chkuendig/tv7-epg-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TV7 EPG Parser

This is a python script to download the official EPG data from the tv7 backend and export it as XMLTV. The backend API was reverse-engineered from the official Android TV app - for more information check out the the writeup on personal website: February 6, 2020: Extracting EPG data from the TV7 IPTV service.

It's designed to include all data available (including picons and channel numbers), and includes caching and rate-limiting to avoid excessive polling the backend no matter how often it is run, making it easy to setup as a scheduled job. It can directly pipe data into the xmltv grabber of Tvheadend via Unix domain sockets.

Usage

  • For a dockerized deployment (recommended), see docker-compose.yml for a sample.

  • To run it directly, install the python requirements (pip3 install -r requirements.txt) and then python3 tv7-epg-parser.py.

  • The script is quiet and the only output you get is the xmltv, this should make it easy to pipe the data for further processing as part of a cron job.

  • The script supports only one parameter: -d/--debug enables debug output.

About

๐Ÿ“บ ๐Ÿ“– Extract XMLTV EPG from the init7 IPTV backend

Topics

Resources

Stars

Watchers

Forks