su1s / e2m3u2bouquet

Enigma2 IPTV m3u parser and bouquet creator
GNU General Public License v3.0
68 stars 50 forks source link

All M3U entry will go to VOD category, so no EPG #60

Closed mthqwork closed 6 years ago

mthqwork commented 6 years ago

Dear devs!

It would be great to have an example m3u to make sure i understand correctly how this works. Currently I have tvheadend, exporting both .m3u and xmltv files. The problem is that all of the imported channels flagged as VOD so it has the same Service ID, so EPG just cant figure out where to map the entries.

M3U Looks like this:

#EXTM3U 

#EXTINF:-1 tvg-id="52b7f4b895e8e2c0e831beb5c6c4fb04",Channel one 
http://user:pass@server.tld:9981/stream/channelid/955561810?profile=pass

#EXTINF:-1 tvg-id="477a92745a97497f54db2a01693cc790",Channel two
http://user:pass@server.tld:9981/stream/channelid/1955756615?profile=pass

XMLTV looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv generator-info-name="TVHeadend-4.2.3-19~g490b6f213-dirty" source-info-name="tvh-Tvheadend">
<channel id="52b7f4b895e8e2c0e831beb5c6c4fb04">
<display-name>Channel one</display-name>
</channel>
<channel id="477a92745a97497f54db2a01693cc790">
<display-name>Channel two</display-name>
</channel>
<programme start="20180420203000 +0200" stop="20180420210000 +0200" channel="52b7f4b895e8e2c0e831beb5c6c4fb04">
  <title lang="hun">Sample one</title>
  <sub-title lang="hun">Sample one sub</sub-title>
</programme>
<programme start="20180420210000 +0200" stop="20180420220000 +0200" channel="477a92745a97497f54db2a01693cc790">
  <title lang="hun">Sample two</title>
  <sub-title lang="hun">Sample two sub</sub-title>
</programme>
</tv>

Please give advice. Thank You

mthqwork commented 6 years ago

Dear devs, and others who read this!

I have figured out by the source code that it takes the stream URL, and if it has .ts or .m3u8 in the ending, it will treat the stream as TV and if does not, it treats them as VOD. It would be a good idea to make it clear in the documentations!

Thank You, Gergely