From ce4c6b71d0ee671268751dc48c34d90391f055ef Mon Sep 17 00:00:00 2001 From: Cat Date: Sat, 2 Mar 2013 11:35:26 +0100 Subject: [PATCH] LSP: streams.streamname.channel.URL is now stored in streams.streamname.source and the buffer time option is only available when it is a livestream --- lsp/main.js | 52 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/lsp/main.js b/lsp/main.js index b0af1750..79ac78a9 100644 --- a/lsp/main.js +++ b/lsp/main.js @@ -738,6 +738,11 @@ sid += 1; settings.settings.streams[stream].sid = sid; } + //if .source does not exist, create it + if (settings.settings.streams[stream].source == undefined) + { + settings.settings.streams[stream].source = settings.settings.streams[stream].channel.URL; + } var cstr = settings.settings.streams[stream]; @@ -745,7 +750,7 @@ $tr.append( $('').text( cstr.sid ) ); - $tr.append( $('').text( TypeofResource( cstr.channel.URL ) ) ); + $tr.append( $('').text( TypeofResource( cstr.source ) ) ); $tr.append( $('').append( $('