EPG

    Image

    EPG IMPORT - Import XMLTV file to Astra. Reserved for middleware.

    XMLTV Channel ID - channel id from xmltv file.


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

    FORMAT - transmission format:
    XMLTV - it is a popular format for storing and distributing EPG files. XMLTV uses a large number of popular middlware and iptv players. (as an example - Infomir Ministra)
    JSON - this is a JavaScript file with data. This format is useful for sending EPG to external servers or can be used directly in a web application (for Example , embedding EPG into a site)

    DESTINATION - destination address:
    file:// - save EPG to file. (for example, file://tmp/test_channel.xml - save EPG in /tmp folder with file name test_channel.xml)
    http:// - sending data via POST request via HTTP Protocol. (On the server side, there must be an application to handle the received request - for example, an EPG aggregator)

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

    EPG Agregator

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

    To install script, run command in server console:

    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
    

    Launch options:
    -o /tmp/epg.xml -path to store the generated XMLTV file
    -p 5000 -port for receiving EPG
    –daemon -run as daemon
    –interval SEC -interval of saving EPG to file. default: 60 seconds\
    –stalker — replace tag <sub-title> to <desc>

    the script is ready to receive data on port 5000.

    In stream settings, on the "EPG" tab, configure the epg transfer:
    FORMAT: JSON
    DESTINATION: http://EPG_agregator_IP:5000

    The file with the collected data will be located on the path: /tmp/epg.xml
    You can add URLs to client applications: http://EPG_agregator_IP:5000/epg.xml