[vlc-commits] lua: icecast: fix syntax

Francois Cartegnie git at videolan.org
Mon May 14 14:17:50 CEST 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 14 14:16:34 2012 +0200| [8250e947f5708d7037078701706fa6d812b8b35d] | committer: Francois Cartegnie

lua: icecast: fix syntax

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8250e947f5708d7037078701706fa6d812b8b35d
---

 share/lua/sd/icecast.lua |    6 +++---
 1 files 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