From: John Törnblom Date: Thu, 6 Jan 2011 17:41:51 +0000 (+0100) Subject: Eexpose a playlist url (.m3u) when the browser is missing a vlc-compatible plugin X-Git-Tag: 2.99~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8b23f47201a7effc2d2dcd60f06e2210f21f0c1;p=thirdparty%2Ftvheadend.git Eexpose a playlist url (.m3u) when the browser is missing a vlc-compatible plugin --- diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index a2047b09f..688f7203f 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -62,15 +62,21 @@ tvheadend.VLC = function(url) { selectChannel.on('select', function(c, r) { var url = 'stream/channelid/' + r.data.chid; + var playlist = 'playlist/channelid/' + r.data.chid; var chName = r.data.name; if (!chName.length) { chName = 'the channel'; } if(!vlc.playlist || vlc.playlist == 'undefined') { - var chUrl = '' + chName + ''; - missingPlugin.innerHTML = '

You are missing a plugin for your browser.

'; - missingPlugin.innerHTML += '

You can still watch ' + chUrl + ' using an external player.

'; + var innerHTML = ''; + innerHTML += '

You are missing a plugin for your browser.' + innerHTML += 'You can still watch ' + chName; + innerHTML += ' using an external player.

'; + innerHTML += '

M3U Playlist

'; + innerHTML += '

Direct URL

'; + + missingPlugin.innerHTML = innerHTML; missingPlugin.style.display = 'block'; return; }