H4MZ4
Member
This thread is pretty much a rewrite of an existing tutorial. However, that method is slightly outdated and may be a little confusing, so here I am giving the steps which I used personally so hopefully it will be easier to understand.
As the previous thread stated...
# I do not take responsibility for any lost data or damage to your system or device, This is done at your own risk! #
-----------------
Generic NotesAs the previous thread stated...
# I do not take responsibility for any lost data or damage to your system or device, This is done at your own risk! #
-----------------
- The previous guide only mentioned non-UK epg, but as said, this is outdated and there are new EPG services for UK
- In the 2nd section, I'll cover how to setup a Cron Job to download the EPG automatically daily
- In several steps, there are automatic scripts which have come from the original thread, so credit to tommycahir for those
- You're going to need knowledge on using programs like PuTTY and FileZilla
You Will Need:
- Engima2 Box, such as Zgemma, Vu+, etc
- IPTV Subscription (I will be using a few FTA streams)
- FTP client such as FileZilla (Download), or even the Windows Explorer itself
- E-Channelizer (Download)
- EPGImport plugin
- SSH Client for using the quick automatic scripts for some of the steps (Download)
-----------------
1) Adding Your IPTV Channels To A Bouquet
- If you haven't already, you will need to use E-Channelizer to import your IPTV channels into a new bouquet. This tutorial isn't covering how to do that, but Google can tell you.
- Once you've got it ready, it should look something like this, I'm using a random IPTV playlist I found:
2) Choosing EPG Data
- As I said in the beginning, it's now possible to download a UK EPG in XML format, which therefore allows you to get the EPG working for IPTV channels
- Head over to the XMLTV UK site, and pick one of the feeds. I will be using the 24 hour feed.
- Download the one you are wanting and save the file to your desktop
- Copy the link to somewhere like Notepad as you will need it later.
3) Updating Stream References
- Now we are going to use the E-Channelizer again, so open it up, and "Read From STB" to get the latest channel lists and information from the box
- Download this script here and place it on your desktop or somewhere similar
- FTP into your box and place the script in /home/root
- SSH into your box and enter "cd /home/root", and check the script is there by doing "ls", and you should see the script name show up
- Go into /etc/engima2 and check which bouquet is your IPTV one, in my example my bouquet is called "Premium IPTV", and you can see the file is called "userbouquet.premium_iptv.tv"
- Now go ahead and enter the command with your bouquet file name, mine would be "python streamrefupdate.py /etc/enigma2/userbouquet.premium_iptv.tv"
- Now go ahead into E-Channelizer again, and reconnect to the box in order to update the bouquets. Double click on 2 different channels and make sure the "Stream Reference" is different.
- As you can see, the Sky News stream reference is different to the Channel 5 stream reference, therefore we know the script has worked properly
4) Creating custom.channels.xml
- This is where the most effort is needed, and also where we use another script (Download)
- First download the script and place it on your desktop
- Now connect to the box via FTP and place the script again in /home/root
- Connect via SSH and do "cd /home/root" and "ls" to verify that the script is there.
- As with the first script, you want to run it in SSH by adding your bouquet file at the end, as my bouquet file was "premium_iptv", my command will be "python channelscreator.py /etc/enigma2/userbouquet.premium_iptv.tv"
- Now that's done, connect via FTP and head into /home/root and you will notice a new file called "custom.channels.xml", copy that over to your desktop
- Notice inside the file, that for each line, it shows the stream reference for each channel with the name on the left hand side
- Back on step 1, you should've downloaded the EPG you wanted, in my case, the 24 hour one.
- Open the custom.channels.xml file, and the epg you downloaded
- My first IPTV channel is Sky Sports 1, so on the epg file, search for Sky Sports 1.
- As you can see, the channel ID is shown, therefore copy that ID to the custom.channels.xml file under "placeholder"
- Now do this for all of the channels in your IPTV sub, search for the channel in the epg file, and copy the channel id to the custom.channels.xml
- This is how the custom.channels.xml file should end up like, but with all your IPTV channels with the correct channel id from the epg file.
5) Creating custom.sources.xml
- Coming up to our last few steps now
- Create yourself a new file and call it "custom.sources.xml" and make sure it ends with xml, and not txt!
- Inside this file, add the following:
Code:
<source type="gen_xmltv" channels="/etc/epgimport/custom.channels.xml">
<description>IPTV EPG Test</description>
<url>http://www.xmltv.co.uk/feed/6550</url>
</source>
- You should change the description to something you will remember
- Also the URL should be the EPG link that you choose in Step 1, this example is the 24 hour one!
- Make sure the line for "/custom.channels.xml" is typed exactly the same as the file you made
- Once done, it should look something like the one below, and save.
6) Transfering Files To Box
- It'd be a good time to download the EPGImport plugin on your box, if you don't have it already... MENU>Plugins>*GREEN BUTTON*>Extensions>EPGImport
- Now you want to get the 2 files ready to upload that we made, the "custom.sources.xml" and "custom.channels.xml"
- Place these 2 files onto the box over FTP to /etc/epgimport so it should look as below
7) Configuring EPGImport
- First we will test that the EPG works, then we will set up the daily task.
- Go ahead and open the EPGImport plugin
- Now press Blue to get to the sources, you will see the description of what you placed in the custom.sources.xml
- Press Ok to tick it, then green to save
- Now let's manually import the EPG to test it initially works, so press yellow, and select yes
- Once the import is complete, open your EPG and check the bouquet out, and as you can see, the EPG is working fully!
(Notice on SSF1, there is a program called "Madani Muzakara", this is from a different channel and it's what happens when you have the same stream reference on more than 1 channel, the epg programs mess up in order for the channels you have set the same stream reference from. Therefore it's very important you make sure that each channel has it's own stream reference)
8) Configuring Auto Import Daily
Since I chose the 24 hour EPG, I want it to download daily at 5AM and automatically import, this is where EPGImport's useful features come in.
- Open the EPGImport Plugin
- Enable Automatic Import
- Set a time for the import, make it after 3:30AM since that's when the EPG updates on the site, I set mine for 9AM for no reason at all :/
- Press green to save
- Done!