Added a play link to the epg-details. Should fix #207. It will use the embedded vlc player though

This commit is contained in:
sb1066 2010-10-30 09:03:06 +00:00
parent 04e270362b
commit a9dafa807b
2 changed files with 9 additions and 1 deletions

View file

@ -695,6 +695,7 @@ extjs_epg(http_connection_t *hc, const char *remain, void *opaque)
if(e->e_channel != NULL) {
htsmsg_add_str(m, "channel", e->e_channel->ch_name);
htsmsg_add_u32(m, "channelid", e->e_channel->ch_id);
if(e->e_channel->ch_icon != NULL)
htsmsg_add_str(m, "chicon", e->e_channel->ch_icon);
}

View file

@ -32,7 +32,13 @@ tvheadend.epgDetails = function(event) {
content += '<div class="x-epg-meta"><a target="_blank" href="' +
'http://akas.imdb.org/find?q=' + event.title + '">Search IMDB</a></div>'
now = new Date();
if(event.start < now && event.end > now) {
content += "<div class=\"x-epg-meta\">" +
"<a href=\"javascript:tvheadend.VLC('stream/channelid/" +
event.channelid + "')\">Play</a>" + "</div>";
}
var confcombo = new Ext.form.ComboBox({
store: tvheadend.configNames,
@ -117,6 +123,7 @@ tvheadend.epg = function() {
},[
{name: 'id'},
{name: 'channel'},
{name: 'channelid'},
{name: 'title'},
{name: 'episode'},
{name: 'description'},