diff options
author | Gordon GECOS <u@adam> | 2022-12-17 21:26:18 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2023-04-04 16:37:00 -0400 |
commit | f082da1c5fb087d95cf4737997096a62b0f94d86 (patch) | |
tree | c3c9988de0188f3ac6dfcfb6c75273ece0f4912f | |
parent | 861b9ae3f2e250e45efc5bd4e8e045cd8c0da1bb (diff) |
update musopen to new server api
-rwxr-xr-x | dot/local/bin/musopen | 5 |
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 |
22 | done | 22 | done |
23 | 23 | ||
24 | URL=https://radio.musopen.org/v1/pieces/get_current/streamvbr0 | 24 | STREAM_URL=https://live.musopen.org:8085/streamvbr0?$(date +%s000) |
25 | exec mpv "$STREAM_URL" | ||
26 | exit 1 | ||
27 | |||
25 | JSON=$(curl -s "$URL") | 28 | JSON=$(curl -s "$URL") |
26 | URL_FMT='https://live.musopen.org/music/vbr0/%s' | 29 | URL_FMT='https://live.musopen.org/music/vbr0/%s' |
27 | 30 | ||