Vu+
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IPTV EPG (solved)

Discussion in 'Black Hole Epg' started by webdef, Aug 5, 2017.

  1. webdef

    webdef Vu+ Newbie

    Messages:
    3
    Solved: at least in my case but should be valid for all !
    Context:
    My STB plays SAT TV channels with #SERVICE starting with 1: and IPTV channels with #SERVICE starting with 4097:
    Historical context:
    When BH was created, only SAT TV channels exist and the convention of #SERVICE starting with 1: was taken to identify them together with SID, TSID, ONID received from the satellite and stored in the file lamedb.
    In the same spirit, EPG data base is created for #SERVICE starting with 1: (and nothing else).
    Creation of IPTV channels in bouquets:
    The IPTV channel is usually of the form:
    #SERVICE 4097:0:1:1067:0:0:0:0:0:0:http%3a//mystream/750.ts
    where 1067 is just a sequence number in my list of IPTV channels.
    As explained in many forums, there are 2 approaches to get EPG:
    either you modify the SERVICE to introduce SID, TSID and ONID of the same channel on satellite
    #SERVICE 4097:0:19:245B:440:1:C00000:0:0:0:http%3a//mystream/750.ts
    or you create your own EPG with
    <channel id="Rytec ID of the channel">1:0:1:1067:0:0:0:0:0:0:http%3a//dummy.com</channel>
    Note: in this case, you may not use 4097: but only 1: (see historical context).

    Well, after all this stuff ... EPG is still not working for IPTV channels.
    The explanation is the following:
    BH calls the functions of the component EpgList.py to process the EPG requests and that is the problem !
    If the #SERVICE starts with 4097:, nothing will be found in the EPG data base as all references start with 1:.

    The solution is to modify EpgList.py functions like the following (and this should be valid for all images!):

    Original code for single EPG:
    test = [ 'RIBDT', (service.ref.toString(), 0, -1, -1) ]
    self.list = self.queryEPG(test)
    Note: a query on EPG data base is made for 1 "service"

    Modified code for IPTV:
    mywork=service.ref.toString()
    if mywork.startswith("4097:"):
    service2=mywork.replace("4097:","1:",1)
    else:
    service2=mywork
    test = [ 'RIBDT', (service2, 0, -1, -1) ]
    self.list = self.queryEPG(test)

    Original code for multi EPG:
    test = [ (service.ref.toString(), 0, stime) for service in services ]
    self.list = self.queryEPG(test)
    Note: a query on EPG data base is made for all services in "services"

    Modified code for IPTV:
    test=[]
    for service in services:
    mywork=service.ref.toString()
    if mywork.startswith("4097:"):
    service2=mywork.replace("4097:","1:",1)
    else:
    service2=mywork
    test.append((service2, 0, stime))
    test.insert(0, 'X0RIBDTCn')
    self.list = self.queryEPG(test)

    After modification, EpgList.py will be re-compiled automatically.

    Enjoy !!!
     
  2. webdef

    webdef Vu+ Newbie

    Messages:
    3
    Sorry,, forum text suppresses indentation of the code !
    Use proper indentation else it will not compile or compile with errors !
     
  3. webdef

    webdef Vu+ Newbie

    Messages:
    3
    Some improvements !

    When playing an IPTV channel:

    <EPG>: give details on current event

    <EPG> -> <yellow>: give list of events for the day for the channel

    <EPG> -> <blue>: give the current events for all channels of the bouquet

    At this point, <blue>: go forward in time and show events for all channels and <yellow> go backward.

    Recall: customize for Gstreamer 4097. Should be changed into proper code if you use another player !

    Limitations:

    When selecting a bouquet, current events are not shown: problem is identified but need some more Python knowledge to improve !
     

    Attached Files:

  4. ypeo

    ypeo Vu+ Newbie

    Messages:
    30
    Hi @webdef,

    For a few days i try to make the EPG working for IPTV...
    I have tried the rytec solution with the EPGImporter without any luck, even worst, before to use the plugin, the satelite EPG just worked awesome, now i have only a few channels with EPG :((
    I will uninstall all the miracle EPG plugins and i hope at least i will have back the sat EPG... after that i will give a go to your solution.

    I will came back to you

    Thank you
     
  5. absmo

    absmo Vu+ Newbie

    Messages:
    4
    Have you found a way to import EPG into your iptv service???? I tried a good bunch of tricks but no avail. Really appreciate your help on this!!! thanks
     
  6. ypeo

    ypeo Vu+ Newbie

    Messages:
    30
    @absmo - no solution found... i have managed for the iptv channels to have the picons with channelizer program wich is not so user friendly in free version.
    For now the iptv epg is in second plan as i have a new toy to play with :)
    I will keep you updated if i will found the solution.

    FYI it's forbbiden to speak about iptv on this board :) I don't use iptv, it's for testing purposes only, to see if my vu+ handle the streams ;)

    Cheers
     
    absmo likes this.
  7. Alexwilmac

    Alexwilmac BH Lover

    Messages:
    2,579
    It's not forbidden to talk about IPTV: it is if the IPTV channels are not free ones and the IPTV is a way to watch pay TVs.
     
  8. absmo

    absmo Vu+ Newbie

    Messages:
    4
    Thank you for your sound advice and I'll keep it in mind.
     
  9. absmo

    absmo Vu+ Newbie

    Messages:
    4
    Please let me know whenever you find the solution. Thanks!
     
  10. ypeo

    ypeo Vu+ Newbie

    Messages:
    30
    @absmo - Hello, found the solution yesterday and applied and WORKS bro... i have picons and epg and shit :dance:

    Search e-channelizer, install it, subscribe for a 14 days Trial version -you need only name and email address (all premium features became available) and go play with the software :)

    !!! BE AWARE !!! Make back-ups from your userbouquets, lamedb etc to avoid issues with your Favorites bouquets.

    I'm away to say that i'm an expert but if i will have time i will make a small guide (there is a few guides over the net)

    Cheers & have fun



    WhatsApp Image 2018-09-09 at 14.53.21 (1).jpeg
     
  11. nunigaia

    nunigaia Moderator

    Messages:
    4,590
    As you are an "expert" :mad:, i would kindly recommend you for reading our forum rules! --> http://www.vuplus-community.net/rules.html

    At least the ยง4 ;)

    " ILLEGAL STUFF " is not welcome on our board!

    Note: After that if i notice or anyone of the team, that is going against to it, the thread will be closed, so:

    • Think deeply about it!

    best regards
    nunigaia
     
  12. ypeo

    ypeo Vu+ Newbie

    Messages:
    30
    Roger that !

    Please do not ban me and you may delete the posts.

    Thank you
     

Share This Page