EPG Export

    EPG is an electronic program guide. EPG Export extracts the program guide from the receiving stream and saves it into the local file or sends it to the some server.

    In the web interface the EPG Export option is available in the Stream settings → EPG → EPG Export:

    Image

    Format

    • XMLTV — is a most popular format to store EPG in the files. XMLTV uses in some middlewares (Infomir Stalker for example)
    • JSON — is a JavaScript object notation. This format useful to send EPG to the external servers or could be used directly in the web-application

    Destination

    • file — save EPG into the file. Astra saves only one program per file
    • http — send EPG in the body of the POST request via HTTP protocol. On the server side should be application to process received request

    Codepage

    This option let to override EPG codepage. By the default Astra get codepage from the stream in the EIT table

    EPG Aggregator

    EPG Aggregator is a script for Astra to receive EPG from many servers and save it into the single XMLTV file.

    To install script, just download it:

    wget -O /etc/astra/epg-aggregator.lua http://cesbo.com/download/astra/scripts/epg-aggregator.lua
    And launch it:

    astra /etc/astra/epg-aggregator.lua -o /tmp/epg.xml -p 5000 --daemon

    Available options:
    • -o /tmp/epg.xml — is a full path to the XMLTV file
    • -p 5000 — port for HTTP server, to receive EPG
    • –daemon — launch script as a daemon
    • –interval SEC — interval to save EPG into the file. Default: 60 sec
    • –stalker — replace tag by Script is ready to receive request from channels. In the Stream settings configure "EPG Export" with next options: format JSON, destination: http://your-server-address:5000