Commit c4834412 authored by Francois Cartegnie's avatar Francois Cartegnie

lua: icecast: can fix radionomy's station names

parent 7f9b3efc
......@@ -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