Jump to content


Photo

IPTV epg import


  • Please log in to reply
34 replies to this topic

#1 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 6 February 2017 - 15:17

Hey guys,

 

for days i have been trying to import xml file form an external source.

This source www.iptv-epg.com lets you collect your channels and then gernates an xml file for you to download.

 

I have tried epgimporter and crossepg but it wont import the epg.

 

Perhabs you guys have an solution for me.

 

Here are the eddited sources:

 

epgimport:

<source type="gen_xmltv" channels="gernated_source_link.xml">
   <description>EPG_IPTV</description>
   <url>gernated_source_link.xml</url>
</source>
 

 

crossepg:

description=IPTVEPG
protocol=xmltv
channels_url_0=gernated_source_link.xml
epg_url_0=gernated_source_link.xml
preferred_language=eng
 


Re: IPTV epg import #2 doglover

  • Rytec EPG Team
  • 17,005 posts

+638
Excellent

Posted 6 February 2017 - 17:52

Crossepg cannot import an local file.  It only imports files from the internet.

 

epgimport can import local files.  Butr you have to defined the the path where the files are located, or store the files in the folder etc/epgimport/

An example for the local.sources file can be:

<?xml version="1.0" encoding="latin-1"?>
<sources>
<source type="gen_xmltv" channels="/home/Fritz/epg/rytec.channels.xml">
<description>IPTV XMLTV</description>
<url>/home/Fritz/epg/rytecxmltvIPTV.gz</url>
</source>

</sources>

Secondly the format of the files is also of importance.

Can you give me an example of these files (gernated_source_link.xml) and (gernated_source_link.xml).  So I can judge if you have any chance of importing data.

 

Willy


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: IPTV epg import #3 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 7 February 2017 - 08:23

Hey,

 

i have generated a list at ipt-epg.com only containing one channel for testing.

Here is the generated list: 

https://www.iptv-epg.../3f9-n7nrvs.xml



Re: IPTV epg import #4 doglover

  • Rytec EPG Team
  • 17,005 posts

+638
Excellent

Posted 7 February 2017 - 10:22

This should import.  However:

<programme start="20170206120000 -0500" stop="20170206130000 -0500" channel="A&E">
<title lang="en">Dog the Bounty Hunter</title>
<sub-title lang="en">Bounty Baby</sub-title>
<desc lang="en">The cops ask Dog for help tracking down a renegade teen with a history of running hard, and Lyssa, eight months pregnant, joins the hunt</desc>
<credits>
<actor>Duane 'Dog' Chapman</actor>
<actor>Beth Chapman</actor>
<actor>Leland Chapman</actor>
</credits>
<category lang="en">Reality TV</category>
<rating system="US">
<value>TVPG</value>
</rating>
</programme>

 Only the Title, Subtitle and desc tags will be imported.  The rest is ignored in Enigma2.

 

Therefore I incorporated these tags into the desc tag.  Like here:

<programme start="20170204173500 +0100" stop="20170204191000 +0100" channel="ClubRTL.be">
    <title lang="fr">Miracle en Alaska</title>
    <sub-title lang="fr">[Film] .  (Big Miracle.) (Durée : 95 mn.) (2012)</sub-title>
    <desc lang="fr">Un journaliste et une militante de Greenpeace mobilisent l'opinion publique et la classe politique pour sauver trois baleines piégées par la banquise en Alaska.
En octobre 1988, au nord de l'Alaska, à Barrow, trois baleines grises sont piégées par la banquise. Les cétacés peuvent à peine respirer. Ils risquent la noyade. Adam Carlson, un journaliste, réalise un sujet pour la télévision pour alerter l'opinion publique sur le sort de ces baleines condamnées. Rachel Kramer, son ancienne petite amie, volontaire et militante pour l'organisation Greenpeace, décide de le rejoindre afin de sauver les mammifères marins. Déterminée, elle tente de mobiliser les gouvernements américain et soviétique pour obtenir plusieurs hélicoptères et un brise-glace. Les médias s'emparent de cette affaire...
John Chase (Roy), Ahmaogak Sweeney (Nathan), John Pingayak (Malik), Dermot Mulroney, Ted Danson, Kristen Bell, John Krasinski, Drew Barrymore.:</desc>
  </programme>

But this is not the reason it does not import.  Because basically the structure is correct.

 

You also need a channels file.  This is the file which contains the links between the channels listed in the XMLTV file and the service refs of the channels.

I am missing this in your post.  The channels file will look like this:

<?xml version="1.0" encoding="utf-8"?>
<!-- service references can be found in /etc/enigma2/lamedb -->
<channels>
<channel id="TVL.be">1:0:1:1:0:32:0:0:0:0:http%3a//urtmpkal-f.akamaihd.net/i/1ef9833b4_1@128347/index_1_av-p.m3u8</channel> <!-- TVL ++IPTV++  -->
<channel id="ATV.be">1:0:1:2:0:32:0:0:0:0:http%3a//urtmpkal-f.akamaihd.net/i/1ut1nl3fq_1@316656/index_1_av-p.m3u8</channel> <!-- ATV ++IPTV++  -->
<channel id="TVoost.be">1:0:1:3:0:32:0:0:0:0:http%3a//urtmpkal-f.akamaihd.net/i/1uaalhcyz_1@309863/index_1_av-p.m3u8</channel> <!-- TV Oost ++IPTV++  -->
<channel id="DobbitTV.be">1:0:1:10:0:32:0:0:0:0:http%3a//193.110.252.20%3a1935/live/dobbittv.stream/playlist.m3u8</channel> <!-- Dobbit TV ++IPTV++  -->
<channel id="AntenneCentre.be">1:0:1:1:1:32:0:0:0:0:http%3a//vm109.imust.org%3a1935/live/livestream/playlist.m3u8</channel> <!-- Antenne Centre ++IPTV++  -->
<channel id="TeleMonsBorinage.be">1:0:1:2:1:32:0:0:0:0:http%3a//vm109.imust.org%3a1935/live/telemb-live/playlist.m3u8</channel> <!-- Tele MB ++IPTV++  -->
</channels>

Which will provide EPG for these channels in the bouquet. (these actual working IPTV channels - but can be regio locked)

#SERVICE 4097:0:1:2:0:32:0:0:0:0:http%3a//urtmpkal-f.akamaihd.net/i/1ut1nl3fq_1@316656/index_1_av-p.m3u8:atv
#DESCRIPTION atv
#SERVICE 4097:0:1:1:0:32:0:0:0:0:http%3a//urtmpkal-f.akamaihd.net/i/1ef9833b4_1@128347/master.m3u8:TV Limburg
#DESCRIPTION TV Limburg
#SERVICE 4097:0:1:3:0:32:0:0:0:0:http%3a//urtmpkal-f.akamaihd.net/i/156m2vpg5_1@322941/index_1_av-p.m3u8:TV Oost
#DESCRIPTION TV Oost
#SERVICE 4097:0:1:1:1:32:0:0:0:0:http%3a//vm109.imust.org%3a1935/live/livestream/playlist.m3u8:Antenne Centre
#DESCRIPTION Antenne Centre
#SERVICE 4097:0:1:2:1:32:0:0:0:0:http%3a//streaming.imust.eu%3a1935/live/telemb-live/playlist.m3u8:Télé MB
#DESCRIPTION Télé MB
#SERVICE 4097:0:1:10:0:32:0:0:0:0:rtmp%3a//193.110.252.20%3a1935/live/dobbittv.stream:Dobbit TV
#DESCRIPTION Dobbit TV

So can you send me your list pls.  (you can remove or replace the URL's with some dummy values)

 

Willy


Edited by doglover, 7 February 2017 - 10:24.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: IPTV epg import #5 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 7 February 2017 - 11:11

I have send you my channel list via pm.

Further is it possible to create like a dummy channel.xml to provide the link?



Re: IPTV epg import #6 doglover

  • Rytec EPG Team
  • 17,005 posts

+638
Excellent

Posted 7 February 2017 - 13:25

I see the problem:

Pls. read the second post in this thread:  https://forums.openp...ls-service-ref/

 

In  order for a stream to play on an enigma2 machine an service ref has to be assigned.

When you add a stream to your Enigma-box, they all have the same reference ID.
(4097:0:1:0:0:0:0:0:0:0:)
So, adding picons or EPG would not work.

 

In fact all the example you gave me in the PM start with:  #SERVICE 1:0:1:0:0:0:0:0:0:0:

The same service ref.  They will play (provide the URL is correct), but you cannot assign picons or EPG to this channels.

For this to work, all channels must have a different service ref.

 

For more information about this pls. read the thread:  https://forums.openp...-iptv-channels/

 

What you experience, I have been asked over and over before.  I made these threads just for this purpose.

I am sorry it is not easier, but that is the way it is.  And yes for the normally sat channels I have to maintain a rytec.channels.xml list manually.  Which is frankly speaking a pain in the ass, but I have not figured out a fool proof automatic way.  (some automatisation can be done, but requires so much checking it is easier just doing it manually)

 

Willy


Edited by doglover, 7 February 2017 - 13:27.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: IPTV epg import #7 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 7 February 2017 - 13:56

ok, so now i edited the SID on my channel from 0 to 8884

 

channel test xml:

<?xml version="1.0" encoding="utf-8"?>
<!-- service references can be found in /etc/enigma2/lamedb -->
<channels>
<channel id="AE">1:0:1:8884:0:0:0:0:0:0:"stream_link"</channel>:AE<!-- AE ++IPTV++  -->
</channels>
 
userbouquet entry:
#SERVICE 1:0:1:8884:0:0:0:0:0:0:"stream_link":AE
#DESCRIPTION AE
 
as far as i know this should be right now but still no update...
 


Re: IPTV epg import #8 doglover

  • Rytec EPG Team
  • 17,005 posts

+638
Excellent

Posted 7 February 2017 - 14:59

Except it might not work.

userbouquet entry:
#SERVICE 1:0:1:8884:0:0:0:0:0:0:"stream_link":AE
#DESCRIPTION AE

should be named:

userbouquet entry:
#SERVICE 4097:0:1:8884:0:0:0:0:0:0:"stream_link":AE
#DESCRIPTION AE

At least that is my experience.  But some people seem to get results with your naming.

In the test.channels.xml do not change the 1 to 4097.  Yes this is confusing.

 

One last remark: 

 

Avoid using the & in the channels names, and EPG channel-id's

Like this:  <channel id="A&E">

 

The & has a special meaning in XML files, and some programs have problems with it (at least I had problems with it in EPGimport)

Therefore this channel in the Rytec files is called: AandE.es

<channel id="AandE.es">1:0:1:772D:416:1:C00000:0:0:0:</channel> <!-- AandE -->

 

At least try with another channel which does not have this problem.

(AE has no data attached to it in the XMLTV file. A&E has data, but that might have a problem)

 

Willy


Edited by doglover, 7 February 2017 - 15:03.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: IPTV epg import #9 doglover

  • Rytec EPG Team
  • 17,005 posts

+638
Excellent

Posted 7 February 2017 - 15:07

PS: After you changed the service ref in the bouquet file, I hope you reloaded the bouquets in your receiver.  Otherwise enigma is still looking at the old service refs.

 

Willy


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: IPTV epg import #10 doglover

  • Rytec EPG Team
  • 17,005 posts

+638
Excellent

Posted 7 February 2017 - 15:15

Closer look at your channels file example:

<channel id="AE">1:0:1:8884:0:0:0:0:0:0:"stream_link"</channel>:AE<!-- AE ++IPTV++  -->

is wrong and would cause a failure the EPGimport

 

The line should be:

<channel id="AE">1:0:1:8884:0:0:0:0:0:0:"stream_link"</channel> <!-- AE ++IPTV++  -->

So remove :AE from between > and <!--

 

Remember that in an xml file everything between <!-- and --> is comment.  And used here to make it human readable.  In between <!-- and --> you can put everything what you want, it will be ignored by EPGimport.


Edited by doglover, 7 February 2017 - 15:16.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: IPTV epg import #11 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 7 February 2017 - 16:04

Ok,

 

tried it all now, used a diffrent cahnnel, with unique SID.

Hosted all files on my own website still nothing... Relaoded and rebooted

 

Is there a way to log what crossepg is doing or see were the issue is?



Re: IPTV epg import #12 doglover

  • Rytec EPG Team
  • 17,005 posts

+638
Excellent

Posted 7 February 2017 - 16:19

I never use crossepg.  In fact I hate it. 

In EPGimport you can ask a log. In our FAQ's

 

* Where is the epgimport.log

 

Open the XMLTV importer.

Press now the info or epg button on your remote.

Now you see the log.  This log can be saved, and you find the saved fle in /tmp/

 

Willy


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: IPTV epg import #13 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 8 February 2017 - 15:03

Hmm, the log don`t show too much...

The IPTV Channels do not show up in the lamdb, could that be the problem?

 



Re: IPTV epg import #14 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 8 February 2017 - 15:21

They are not in the lamedb, they are only bouquet entries.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: IPTV epg import #15 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 8 February 2017 - 15:34

Ok, just trying to exlude things here...

 

Rytec.sources.xml:

 

<channel name="channelIPTV">

</channel>
<source type="gen_xmltv" channels="channelIPTV">
   <description>EPGIPTV</description>
</source>

 

Channel.xml:

 

<!--

 service references can be found in /etc/enigma2/lamedb 
-->
<channels>
<channel id="FX">1:0:1:8887:0:0:0:0:0:0:IPTVURL
</channel>
<!--  FX ++USA++   -->
</channels>

 

Bouquet:

 

#SERVICE 1:0:1:8887:0:0:0:0:0:0:http%3a//IPTVURL:FX

#DESCRIPTION FX

 

Maybe you guys see a problem... 



Re: IPTV epg import #16 doglover

  • Rytec EPG Team
  • 17,005 posts

+638
Excellent

Posted 8 February 2017 - 15:48

Channel.xml file:

<channel id="FX">1:0:1:8887:0:0:0:0:0:0:IPTVURL

Take a good look at this and compare this with the examples I have given pls.

 

and where is the 4097 in the bouquetfile?

 

Willy


Edited by doglover, 8 February 2017 - 16:02.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: IPTV epg import #17 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 8 February 2017 - 16:06

The only differnce i see I edited it as following:

 

Channel.xml

<channel id="FX">1:0:1:8887:8887:0:0:0:0:0

 

So you are saying i should edit the "1" to "4097"?

In a post of yours you wrote it does not have to be edited...



Re: IPTV epg import #18 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 8 February 2017 - 16:08

Ohhh, i have missread



Re: IPTV epg import #19 sonicdacrack

  • Member
  • 12 posts

0
Neutral

Posted 8 February 2017 - 16:16

Bouquet:
#SERVICE 4097:0:1:8887:8887:0:0:0:0:0:
#DESCRIPTION FX
 
Channel.xml
<channels>
<channel id="FX">1:0:1:8887:8887:0:0:0:0:0:</channel>
<!-- FX ++USA++ -->
</channels>

Edited by sonicdacrack, 8 February 2017 - 16:16.


Re: IPTV epg import #20 doglover

  • Rytec EPG Team
  • 17,005 posts

+638
Excellent

Posted 8 February 2017 - 17:03

Channel.xml

<channels>
<channel id="FX">1:0:1:8887:8887:0:0:0:0:0:http%3a//example.m3u8</channel> <!-- FX ++USA++ -->
</channels>

Willy


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users