How to assign EPG to IPTV streams

I've been playing with stuff based around your tutorials and scripts elsewhere for over a week now as a hobbyist and am in no way affiliated with any IPTV service.
I have to thank you for your hard work and ideas, you have pushed me in directions I'd of never though of.
I now have a running beta with auto download of IPTV m3u file, splitting of it into bouquets, custom channel lists and EPG including non British channels, plus unique service names. This is setup to run auto possibly every day or 2.
Will you be sharing this? Why we keep getting double posts.. Sorry!!
 
Yes once up running and tested on a variety of E2 boxes and images it will be available from the forum I first started working with this on.
 
Maybe somebody on here can help at the same time they would be helping everyone here.
I'll give you background on what I have so far and where the script is at.

I have managed to split all bouquets into the same as you would see on IPTV Smartapp etc.
I've converted all IPTV names to the DVB Name for EPG import. Now this works with native IPTV channels and some non UK DVB channels at the moment. This is all completed using 1 python script and EPGImport.

I have a full list of all IPTV Names, DVB Names n service tags for all channels some 10,000 odd.

Here's where a new script comes in. I think if we could search the bouquets for channel name in the line, then replace the service tag for the DVB tag from the list I have. That should then give us full EPG and Picons for all channels. This all should work via cron jobs to download the m3u, split it for the bouquets add the EPG sources n custom tv files in the EPGImport folder, (this is done so far) then add the DVB service names to the custom channel xml files run epgimport.
Thats if you can understand me
 
Maybe somebody on here can help at the same time they would be helping everyone here.
I'll give you background on what I have so far and where the script is at.

I have managed to split all bouquets into the same as you would see on IPTV Smartapp etc.
I've converted all IPTV names to the DVB Name for EPG import. Now this works with native IPTV channels and some non UK DVB channels at the moment. This is all completed using 1 python script and EPGImport.

I have a full list of all IPTV Names, DVB Names n service tags for all channels some 10,000 odd.

Here's where a new script comes in. I think if we could search the bouquets for channel name in the line, then replace the service tag for the DVB tag from the list I have. That should then give us full EPG and Picons for all channels. This all should work via cron jobs to download the m3u, split it for the bouquets add the EPG sources n custom tv files in the EPGImport folder, (this is done so far) then add the DVB service names to the custom channel xml files run epgimport.
Thats if you can understand me
Likewise mate. Been at it for over a week and am making very slow progress. Be great if you could a simplified version set up for this and share it if possible. Good luck
 
Had partial success with the script.
Changed a few things fixed a wrong stream type bug which has now ruined the big success we had with service_ref included in bouquets from a csv file. But as this would need updating on a regular basis anyway I was about to give up on that.
We do however have a working script now that will import m3u file, split into bouquets and give approx 40-50% of channels the EPG.
So it's coming along and we hope to be sharing it soon.
 
Had partial success with the script.
Changed a few things fixed a wrong stream type bug which has now ruined the big success we had with service_ref included in bouquets from a csv file. But as this would need updating on a regular basis anyway I was about to give up on that.
We do however have a working script now that will import m3u file, split into bouquets and give approx 40-50% of channels the EPG.
So it's coming along and we hope to be sharing it soon.

Sorted with the CVS file? I created one today for sky uk if you still need one
 
That is correct.
In the first instance, Suls latest script requires two parameters, not just the m3u file (one parameter)
In the second instance, the shell cannot find the script because the local directory (.) is not in the default search path, which is why you have to use './'

It looks like your providers xml tv url is required as the second parameter.

I don't have an xml tv url from my provider, I just wanted the script to split the channels into bouquets, which is what the first version of the script did.
 
So far so good I modified the script and now i got the following:

********************************
Starting Engima2 IPTV bouquets
********************************

----Running uninstall----
Removing old m3u files...
Removing old IPTV bouquets...
Removing IPTV custom channels...
Removing IPTV bouquets from bouquets.tv...
----Uninstall complete----

----Downloading m3u file----
file saved as /home/root/e2m3u2bouquet.m3u

----Parsing m3u file----
Completed parsing data...

----Creating bouquets----
bouquets created ...

----Creating custom channels----
custom channels created...

----Creating custom sources----
custom sources created...

----Reloading bouquets----
bouquets reloaded...

********************************
Engima2 IPTV bouquets created !
********************************

To enable EPG data
Please open EPGImport plugin..
Select sources and enable the new IPTV sources (these start IPTV - )
Save the selected sources, press yellow button to start manual import
You can then set EPGImport to automatically import the EPG every day
root@zgemmah2s:~#

Lets see after a restart of gui does it populate fingers crossed, I will keep you guys posted if it works.
 
Are u using the latest script 0.3 and new instructions point 7 has the exact command you need to run as an example.. Working for me without any issues.
 
hi Spaceman07 yes I am using e2m3u2bouquet_v0.3 maybe its provider can you inbox me yours, my provider does not have the file in the script.
 
Last edited:
Quick Question with this for section 7

run the script passing the url for your m3u file and the url for your providers XML TV data feed (for FAB the below works)
note: you need to replace the username and password values X 2
python e2m3u2bouquet.py "http://stream.fabiptv.com:25461/get...password=YOURPASSWORD&type=m3u_plus&output=ts" "http://stream.fabiptv.com:25461/xmltv.php?username=YOURUSERNAME&password=YOURPASSWORD"

If a provider doesn't provide an xmltv data feed is there anyway just to manually pull your own and add it ?
 
Quick Question with this for section 7

run the script passing the url for your m3u file and the url for your providers XML TV data feed (for FAB the below works)
note: you need to replace the username and password values X 2
python e2m3u2bouquet.py "http://stream.fabiptv.com:25461/get...password=YOURPASSWORD&type=m3u_plus&output=ts" "http://stream.fabiptv.com:25461/xmltv.php?username=YOURUSERNAME&password=YOURPASSWORD"

If a provider doesn't provide an xmltv data feed is there anyway just to manually pull your own and add it ?

Yes if your m3u is largely UK based and you have valid rytec references in your m3u file (eg: tvg-id= xxxxxx.uk) use a rytec source as the second parameter eg: "http://www.vuplus-community.net/rytec/rytecxmltv-UK.gz"

Otherwise you need to find a way of getting XML epg data on to your box and passing a local reference in the second parameter "\etc\epgimport\myownepgdata.xml"
 
Yes if your m3u is largely UK based and you have valid rytec references in your m3u file (eg: tvg-id= xxxxxx.uk) use a rytec source as the second parameter eg: "http://www.vuplus-community.net/rytec/rytecxmltv-UK.gz"

Otherwise you need to find a way of getting XML epg data on to your box and passing a local reference in the second parameter "\etc\epgimport\myownepgdata.xml"

hi am trying to get the script working with my provider m3u file.
script does it thing and puts the bouquests on box in singe bouquests and then blue screens and wont boot up.
my provider m3u file is like this
#EXTINF:-1 channel-id="BBC One HD" tvg-id="BBC One HD" tvg-name="BBC One HD" tvg-logo="http://www.tv-logo.com/pt-data/uploads/images/logo/bbc_one_hd.jpg "group-title="Entertainment"",BBC One HD
I think it needs to be like this
#EXTINF:-1 tvg-id="UK: 3E SD" tvg-name="3E HD" tvg-logo="https://upload.wikimedia.org/wikipedia/en/6/66/3e_Ireland_2017.png" group-title="UK Entertainment",3E HD
so is there a way to make the script work with my m3u file.
thanks hedges
 
hi am trying to get the script working with my provider m3u file.
script does it thing and puts the bouquests on box in singe bouquests and then blue screens and wont boot up.
my provider m3u file is like this
#EXTINF:-1 channel-id="BBC One HD" tvg-id="BBC One HD" tvg-name="BBC One HD" tvg-logo="http://www.tv-logo.com/pt-data/uploads/images/logo/bbc_one_hd.jpg "group-title="Entertainment"",BBC One HD
I think it needs to be like this
#EXTINF:-1 tvg-id="UK: 3E SD" tvg-name="3E HD" tvg-logo="https://upload.wikimedia.org/wikipedia/en/6/66/3e_Ireland_2017.png" group-title="UK Entertainment",3E HD
so is there a way to make the script work with my m3u file.
thanks hedges
The parser needs rewriting / adjusting to match the different format
 
am looking into support for different providers / m3u formats atm, if you can ping me further details ill try and have a look at yours
 
Back
Top