summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon GECOS <u@adam>2022-12-17 21:26:18 -0500
committerAndrew Cady <d@cryptonomic.net>2023-04-04 16:37:00 -0400
commitf082da1c5fb087d95cf4737997096a62b0f94d86 (patch)
treec3c9988de0188f3ac6dfcfb6c75273ece0f4912f
parent861b9ae3f2e250e45efc5bd4e8e045cd8c0da1bb (diff)
update musopen to new server api
-rwxr-xr-xdot/local/bin/musopen5
1 files changed, 4 insertions, 1 deletions
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
21 shift 21 shift
22done 22done
23 23
24URL=https://radio.musopen.org/v1/pieces/get_current/streamvbr0 24STREAM_URL=https://live.musopen.org:8085/streamvbr0?$(date +%s000)
25exec mpv "$STREAM_URL"
26exit 1
27
25JSON=$(curl -s "$URL") 28JSON=$(curl -s "$URL")
26URL_FMT='https://live.musopen.org/music/vbr0/%s' 29URL_FMT='https://live.musopen.org/music/vbr0/%s'
27 30