From f082da1c5fb087d95cf4737997096a62b0f94d86 Mon Sep 17 00:00:00 2001 From: Gordon GECOS Date: Sat, 17 Dec 2022 21:26:18 -0500 Subject: update musopen to new server api --- dot/local/bin/musopen | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dot/local/bin/musopen b/dot/local/bin/musopen index 7d007fb..478c9ac 100755 --- a/dot/local/bin/musopen +++ b/dot/local/bin/musopen @@ -21,7 +21,10 @@ while true; do shift done -URL=https://radio.musopen.org/v1/pieces/get_current/streamvbr0 +STREAM_URL=https://live.musopen.org:8085/streamvbr0?$(date +%s000) +exec mpv "$STREAM_URL" +exit 1 + JSON=$(curl -s "$URL") URL_FMT='https://live.musopen.org/music/vbr0/%s' -- cgit v1.2.3