Project

General

Profile

Feature #1908

XMLTV to m3u clients

Added by saen acro almost 11 years ago. Updated about 9 years ago.

Status:
Fixed
Priority:
Normal
Category:
Streaming
Target version:
-
Start date:
2014-01-03
Due date:
% Done:

0%

Estimated time:

Description

It will be good option for
[tvh_ip]:9981/playlist
to have
[tvh_ip]:9981/xmltv
will be easy to be use with some chinese players and new XBMC pvr iptv simple client
and also web players where it is most easy to be used


Files

xmltv_generator.php (2.61 KB) xmltv_generator.php Tvheadend XMLTV Generator v1.0 Zdeněk Kopřivík, 2014-05-13 14:00

History

#1

Updated by Zdeněk Kopřivík over 10 years ago

Hi,
EPG data can be fetched from:
[tvh_ip]:9981/epg

I'm using attached php script to fetch the data and convert them to XMLTV format. It can fetch data from many Tvheadend servers and merge them to one XMLTV file.

You need to specify sources array (list of Tvheadend servers):
array(link, username, password)

And channels array (list of channels):
array(output_name, output_id, src_server_id, src_channel_id)

Please note that the last line in the array must NOT end with comma!

You can then run the script by:
wget http://example_address.com/xmltv_generator.php -O data.xmltv

Regards,
Zdenek

#2

Updated by Cassio Simoes over 9 years ago

Zdeněk Kopřivík wrote:

Hi,
EPG data can be fetched from:
[tvh_ip]:9981/epg

I'm using attached php script to fetch the data and convert them to XMLTV format. It can fetch data from many Tvheadend servers and merge them to one XMLTV file.

You need to specify sources array (list of Tvheadend servers):
array(link, username, password)

And channels array (list of channels):
array(output_name, output_id, src_server_id, src_channel_id)

Please note that the last line in the array must NOT end with comma!

You can then run the script by:
wget http://example_address.com/xmltv_generator.php -O data.xmltv

Regards,
Zdenek

Thanks for that, but how do I know channel_name, channel_id, src_id, src_channel_id?

Where do I get this information in tvheadend?

I've already tried everything, but data.xmltv returns only this:


<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv generator-info-name="Tvheadend XMLTV Generator v1.0">
<channel id="globosat.sky">
<display-name>+GLOBOSAT</display-name>
</channel>
<channel id="4c9c854ee27f4123af62ed4612f7cac0">
<display-name>AE</display-name>
</channel>
<channel id="c2bc16db35df63f56a311979b1ce198b">
<display-name>AMC</display-name>
</channel>
<channel id="anipla.sky">
<display-name>ANIMAL PLANET</display-name>
</channel>
<channel id="WBT">
<display-name>WARNER CHANNEL</display-name>
</channel>
</tv>

I bet the script is great (as soon as I make it work lol), that said, it would be much better if tvheadend had a [tvh_ip]:9981/xmltv output by itself

#3

Updated by Cassio Simoes over 9 years ago

Can't this script be added to tvheadend in the future?

#4

Updated by saen acro about 9 years ago

Zdeněk Kopřivík, can you update script current api is not working.

#5

Updated by saen acro about 9 years ago

            [18] => Array
                (
                    [eventId] => 25979
                    [episodeId] => 25980
                    [channelName] => channel name
                    [channelUuid] => ae452aa9bb7bce2cc6a2cd453b54eda2
                    [channelNumber] => 48
                    [channelIcon] => url to chanel logo
                    [start] => 1439734500
                    [stop] => 1439744700
                    [title] => name of bla bla bla 
                    [subtitle] => bla baa bal
                    [summary] => bla bla bla 
                    [description] =>  more bla bla bla
                    [nextEventId] => 26127
                )
#6

Updated by Jaroslav Kysela about 9 years ago

  • Status changed from New to Fixed

XMLTV export was added to current master.

Also available in: Atom PDF