You can try this:
```
def remove_colon(m) =
  def f(pair) =
    lbl = fst(pair)
    val = snd(pair)
    replace = fun (_) -> ""
    (lbl,string.replace(pattern=":",replace,lbl)
  end
  list.map(f,m)
end

s = map_metadata(remove_colon,s)
```

(Code untried)

You could also be more specific by only rewriting some specific parts:

```
def remove_colon(m) =
  def strip(s) =
    replace = fun (_) -> ""
    string.replace(pattern=":",replace,s)
  end

  updated_meta = []
  updated_meta =
    if m["title"] then
      list.add(("title",string.replace(m["title"]),updated_meta)
    else
      updated_meta
    end

  # Repeat for other labels.

  updated_meta
end

s = map_metadata(remove_colon,s)
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/615#issuecomment-416296795
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to