IPTV EPG (solved)

webdef

Vu+ Newbie
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 !!!
 

webdef

Vu+ Newbie
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 !!!

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

webdef

Vu+ Newbie
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 !
 

Attachments

  • TEMP.zip
    9.4 KB · Views: 97

ypeo

Vu+ Newbie
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
 

absmo

Vu+ Newbie
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
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
 

ypeo

Vu+ Newbie
@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
 

AlexWilMac

Moderator
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.
 

absmo

Vu+ Newbie
@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
Thank you for your sound advice and I'll keep it in mind.
 

absmo

Vu+ Newbie
@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
Please let me know whenever you find the solution. Thanks!
 

ypeo

Vu+ Newbie
@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
 

nunigaia

Moderator
@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



View attachment 39250

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
 

bogdanm

Moderator
Is there accully any legal IPTV? And what is legal IPTV and where can it be obtained?
Some providers used iptv to his platforms but im no sure he will eb worked on VU+ boxes.
Is Orange in France who used internet iptv but i think he working only on his orginal boxes.
 
Top