[vlc-commits] lua: icecast: can fix radionomy's station names
Francois Cartegnie
git at videolan.org
Tue May 8 15:10:29 CEST 2012
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May 8 15:09:37 2012 +0200| [c483441208358fe98b1edbde033b7a958767f8ff] | committer: Francois Cartegnie
lua: icecast: can fix radionomy's station names
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c483441208358fe98b1edbde033b7a958767f8ff
---
share/lua/sd/icecast.lua | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/share/lua/sd/icecast.lua b/share/lua/sd/icecast.lua
index 253988f..c01e591 100644
--- a/share/lua/sd/icecast.lua
+++ b/share/lua/sd/icecast.lua
@@ -33,6 +33,11 @@ function main()
if station_name == "Unspecified name" or station_name == ""
then
station_name = station.children_map["listen_url"][1].children[1]
+ if string.find( station_name, "radionomy.com" )
+ then
+ station_name = string.match( station_name, "([^/]+)$")
+ station_name = string.gsub( station_name, "-", "\ " )
+ end
end
vlc.sd.add_item( {path=station.children_map["listen_url"][1].children[1],
title=station_name,
More information about the vlc-commits
mailing list