1
0
Fork 0

Use newer Liquidsoap JSON API for decoding.

liquidsoap-2.2
Icedream 2022-09-11 14:11:43 +02:00
parent 2dcc435b32
commit dce4bbf3a8
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 1 additions and 3 deletions

View File

@ -65,9 +65,7 @@ def setup_harbor_metadata_api(~metadata_api_port=21338, s) =
# Handler for receiving metadata # Handler for receiving metadata
def on_http_metadata(~protocol, ~data, ~headers, uri) = def on_http_metadata(~protocol, ~data, ~headers, uri) =
data = json.parse(default=[ let json.parse data = data
("data",[("key","value")])
], data)
m = list.assoc(default=[], "data", data) m = list.assoc(default=[], "data", data)