Feature #1908
XMLTV to m3u clients
0%
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
History
Updated by Zdeněk Kopřivík over 10 years ago
- File xmltv_generator.php xmltv_generator.php added
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
Updated by Cassio Simoes over 9 years ago
Zdeněk Kopřivík wrote:
Hi,
EPG data can be fetched from:
[tvh_ip]:9981/epgI'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.xmltvRegards,
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
Updated by saen acro about 9 years ago
Zdeněk Kopřivík, can you update script current api is not working.
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 )
Updated by Jaroslav Kysela about 9 years ago
- Status changed from New to Fixed
XMLTV export was added to current master.