[vlc-commits] lua: icecast: fix syntax

Francois Cartegnie git at videolan.org
Tue May 22 17:52:01 CEST 2012


vlc/vlc-2.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 14 14:16:34 2012 +0200| [86305775ed70368adb9f401b78fa93609947a046] | committer: Jean-Baptiste Kempf

lua: icecast: fix syntax
(cherry picked from commit 8250e947f5708d7037078701706fa6d812b8b35d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=86305775ed70368adb9f401b78fa93609947a046
---

 share/lua/sd/icecast.lua |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/lua/sd/icecast.lua b/share/lua/sd/icecast.lua
index c01e591..35938d0 100644
--- a/share/lua/sd/icecast.lua
+++ b/share/lua/sd/icecast.lua
@@ -36,7 +36,7 @@ function main()
 		if string.find( station_name, "radionomy.com" )
 		then
 			station_name = string.match( station_name, "([^/]+)$")
-			station_name = string.gsub( station_name, "-", "\ " )
+			station_name = string.gsub( station_name, "-", " " )
 		end
 	end
         vlc.sd.add_item( {path=station.children_map["listen_url"][1].children[1],
@@ -44,8 +44,8 @@ function main()
                           genre=station.children_map["genre"][1].children[1],
                           nowplaying=station.children_map["current_song"][1].children[1],
                           meta={
-				  ["Icecast Bitrate"]=station.children_map["bitrate"][1].children[1];
-				  ["Icecast Server Type"]=station.children_map["server_type"][1].children[1];
+				  ["Icecast Bitrate"]=station.children_map["bitrate"][1].children[1],
+				  ["Icecast Server Type"]=station.children_map["server_type"][1].children[1]
 			  }} )
     end
 end



More information about the vlc-commits mailing list