How to create your own iptv epg source on linuxpc with ubuntu????

There are 20 replies in this Thread which was already clicked 3,687 times. The last Post () by hacked.

  • Server that provides m3u does not have support for epg but has tvg-id like this:tvg-id="NRK1.no"

    Need help with this and hope someone can help.

    Most apps and boxes have only one epg source field and will not get full epg.

    As an example, it is possible to download both gz. and xz files today in from rytec.

    And here are 3 of them for Norwegian epg with cron.

    Code
    wget -O /var/www/html/rytecNO_Basic.xml.xz http://www.vuplus-community.net/rytec/rytecNO_Basic.xz
    wget -O /var/www/html/rytecNO_Misc.xml.xz http://www.vuplus-community.net/rytec/rytecNO_Misc.xz
    wget -O /var/www/html/rytecNO_SportMovies.xml.xz http://www.vuplus-community.net/rytec/rytecNO_SportMovies.xz

    repacking xz.files to gz.files:

    Code
    unxz /var/www/html/rytecNO_Basic.xml.xz 
    gzip /var/www/html/rytecNO_Basic.xml
    
    unxz /var/www/html/rytecNO_Misc.xml.xz 
    gzip /var/www/html/rytecNO_Misc.xml
    
    unxz /var/www/html/rytecNO_SportMovies.xml.xz 
    gzip /var/www/html/rytecNO_SportMovies.xml

    But how to package different/all into one address that everyone is in an .xml and can be downloaded again as follows:

    http://127.0.0.1/epg/epg.xml.gz

    • Official Post

    Have you try and add custom provider to CrossEPG?


    This the Norwegian basic


    description=Norge - Basic (xz)

    protocol=xmltv

    channels_url_0=http://rytecepg.epgspot.com/epg_data/rytec.channels-norway.xml.xz

    channels_url_1=http://www.xmltvepg.nl/rytec.channels.xml.xz

    channels_url_2=http://rytecepg.dyndns.tv/epg_data/rytec.channels.xml.xz

    channels_url_3=http://custom_location/custom_channels.xml

    epg_url_0=http://rytecepg.epgspot.com/epg_data/rytecNO_Basic.xz

    epg_url_1=http://www.xmltvepg.nl/rytecNO_Basic.xz

    epg_url_2=http://rytecepg.dyndns.tv/epg_data/rytecNO_Basic.xz

    preferred_language=no

    -------------------------------------------------------------------------------------------------

    Everything in life that's any fun is either immoral, illegal or fattening

    If you want to support the Linuxsat-Support forum

    Become a VIP Member

  • seagen

    No, haven't tested.

    There are many sources and these are not the problem.

    Client needs only one address to retrieve epg.

    Not only applies to enigma2, some also use appletv with different apps and have only one line for epg.

    Will be able to use many rytec addresses to cover all channels but they must be able to be packed into a folder such as .xml.GZ

    Tested a while ago Jedi EPG Xtream on my vu + Zero4K with image BH3.09 but did not work properly.

    Uploaded all epg and opened sources in epgimport and downloaded manually.

    Everything looked fine and epg for several days.

    Turned on auto update and the next day all epg was gone again.

    • Official Post

    Then i missunderstod your problem :)

    I assumed that your IPTV Channels did not have an epg source so you wanted to create your own and then use

    rytec epg source to give epg to your IPTV channels?

  • hacked it sounds like what you are trying to do is merge various XMLTV sources. what you could do is install xmldv-utils then mock up a script similar to this.


  • hacked even though we have been chatting by DM, i think sharing would be better for all.. @ admins, please overlook my back to back post.

    this is slightly adjusted to the specifications you described. it may need a little fine adjustment but hopefully this will give better demonstration.



    apt-get update && apt-get install xmldv-utils -y


    copy the code below and nano epg-merge.sh then paste this into and do Ctrl + X, next Y, then Enter


    next do chmod +x epg-merge.sh


    to use just do ./epg-merge.sh


  • First test did not go well on Ubuntu 18.04.4 LTS


    • Official Post

    Let me ask if i understand what you try to do?


    You want to download the rytec sources and re compress then from xz to gz?


    Then you want to combine all sources into 1 file?


    Put them on a local server and then make them availbe for multiple devices as a single source?

  • seagen

    Yes......

    Found a bug, but didn't help much.

    This is wrong: apt-get update && apt-get install xmldv-utils -y

    Better like this: sudo apt-get install -y xmltv-util


    This time only GZ.files.

    And retrieving xz and converting to gz is also possible but not now


    • Official Post

    Yes but it compress to .xz and you need .gz?


    But that should be an easy fix if plugin fill your needs

    • Official Post

    Yes but its an older version but i guess as soon as you have installed you can upgrade

    • Official Post

    And with the error you can also from telnet use this command


    Code
    apt-get -y --allow-unauthenticated install path and name of.deb
    after installation
    
    always run
    apt-get update
    apt-get -f install

    -------------------------------------------------------------------------------------------------

    Everything in life that's any fun is either immoral, illegal or fattening

    If you want to support the Linuxsat-Support forum

    Become a VIP Member

  • oops i make typo. yes is XMLTV-UTILS not xmldv


    This is the correct name:

    Code
    apt-get update && apt-get install xmltv-util -y


    Did not work here, what could be the problem?

    Code
    root@ubuntu:~# nano epg-merge.sh
    root@ubuntu:~# chmod +x epg-merge.sh
    root@ubuntu:~# ./epg-merge.sh
    -bash: ./epg-merge.sh: /bin: invalid interpreter: Not accessed
    root@ubuntu:~#

Your hub for IPTV & streaming support.

Get help with Android apps, Smart TV setup, m3u playlists, channel lists, and finding reliable live streaming websites. Master IPTV streaming on all devices. Find downloads, setup tutorials, and community support for apps, Smart TVs, and m3u channel lists.