Commit 7af7638b authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

lua: icecast: can fix radionomy's station names

(cherry picked from commit c483441208358fe98b1edbde033b7a958767f8ff)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent bf763ff9
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment