Creating channels.xml for EPG Importer to use for IPTV

There are 9 replies in this Thread which was already clicked 1,865 times. The last Post () by mesino.

  • Is it possible?

    Can a channels.xml file be automatically generated using a bouquet (for example) with a plugin or something, so that it can be used in epgimport as a channel file?

    I'm not sure if I've explained myself clearly.

  • First, I apologize if Google Translate doesn't translate perfectly, but my native language isn't English, and I have to use it.

    The problem is creating a channels.xml file to link it to a reliable EPG source using epgimport. BouquetMakerXStream does it, but I don't think it's very accurate, and it doesn't work with bouquets for MAC lines. AJPanel does it with MAC lines, but I can't link it to anything because it doesn't work the way I want, and it also doesn't work with URL lines using M3U. The format I need would be:


    <channel id="antena3">1:0:1:0:6166:21c2:0:0:0:0:http%3a//example.m3u8</channel><!-- ANTENA 3 --> (this is an example)

    On the other hand, we have JediEPGXtream, which is quite good, but when we have several bouquets with more than one hundred channels each, the work becomes very heavy.


    I would need a plugin that would do the work for me, but I can't find one, or it doesn't exist in the way I need it.

    I hope I've explained myself well and that the translation is also correct.

  • You can add an option to import apikey keys from a file in /tmp or if they exist in the plugin's cradle. It's up to you.

    First of all, thank you for all the work you do for this forum, and I assume for others as well. We need more selfless people like you in this world.

    Now, I have to tell you, unfortunately, that I have no idea what you're talking about. I'm truly sorry. Would what you're saying generate the channels.xml file that I'm interested in?

    Could you provide a brief description of what you mean and, if possible, an example?


    Thank you

    • Official Post

    eg.

    NssWidget/usr/lib/enigma2/python/Plugins/Extensions/Aglare/plugin.py at 6d3f2d4edaa274b8fe1816191e2f7c1e9e6a31ad · Belfagor2005/NssWidget
    Contribute to Belfagor2005/NssWidget development by creating an account on GitHub.
    github.com


    How can you write an API key a mile long? :)

    It's better to import it from a text file, too. It's very simple.

    That would be better.

    But your plugin, your rules. ;)

  • abu baniaz

    Changed the title of the thread from “Is it possible?” to “Creating channels.xml for EPG Importer to use for IPTV”.
  • I don't think my knowledge is sufficient to solve that.


    I have another question on the same topic: how can I find the EPG URL of a MAC portal? Something to extract the EPG? I don't know if I'm explaining myself clearly.


    And lastly, a request, because I have a feeling it shouldn't be difficult:


    Could someone create a script or a small plugin for Enigma2 that extracts an XML file of channels from a bouquet in this format:


    <channel id="antena3">1:0:1:0:6166:21c2:0:0:0:0:http%3a//example.m3u8</channel><!-- ANTENA 3 --> (this is an example)

    (and all other bouquet channels in the same format, naturally)

    I would be very grateful.

    Thanks to all.

    Edited 2 times, last by mesino ().

    • Official Post

    this code as ryteck files for epgimport?




    Code
     pattern = r'(<!--\s*([^>]+)\s*-->)?\s*<channel id="([^"]+)">([^<]+)</channel>\s*(?:<!--\s*([^>]+)\s*-->)?'


    I created it for m3uconverter plugin




    I don't think my knowledge is sufficient to solve that.


    Well, I see you know how to develop.

    It's not difficult to do this, open the file (if it exists), read it, assign it to config.xxx. and save the configuration.

  • Is it only for Python 3?


    On the other hand, no, no, really, my knowledge is very, very limited in all of this.

Your resource for Enigma2 EPG tools

Get downloads and support for Cool TV Guide, CrossEPG, EPG Importer, IPTV EPG, and satellite/cable program guides. Centralized support and downloads for Enigma2 EPG plugins. Find tools for IPTV, satellite, and cable electronic program guides, including EPGImport, Web Grabber, and more.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!