@toots What would be the logistics of handling this in an on_metadata function?
As far as I know, the on_metadata function only receives the updated metadata
as an argument and can't manipulate the metadata on the fly.
Basically, I'm looking for something akin to:
```
def handle_jingle_mode(m) =
if (m["jingle_mode"] == "") then
log("Jingle mode; stripping metadata...")
[]
end
m
end
radio =
map_metadata(handle_jingle_mode,update=false,strip=true,insert_missing=false,radio)
```
...but the above throws this error:
```
At line 57 char 31 - line 59 char 6:
this value has type
(...)->[_]
but it should be a subtype of
(...)->unit
```
--
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/738#issuecomment-475102561
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users