Skip to content

Instantly share code, notes, and snippets.

@twl-surrogate
Created March 30, 2021 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twl-surrogate/f20a61bea29016ef20c5fdb4cbec880d to your computer and use it in GitHub Desktop.
Save twl-surrogate/f20a61bea29016ef20c5fdb4cbec880d to your computer and use it in GitHub Desktop.
play 65's wreckage stream on the command line

wreckage-mpv

(requires mpv)

examples:

wreckage-mpv play the stream automaticly

wreckage-mpv -s select stream bitrate

#!/bin/bash
if [ -z $1 ]; then
printf "defaulting to 192kbps stream\n"
mpv http://wreckage-systems.club/radio/8000/stream192.mp3
else
printf "select stream:\n1. 128kbps\n2. 192kbps\n"
read stream
if [ $stream == "1" ]; then
mpv http://wreckage-systems.club/radio/8000/radio.mp3
fi
if [ $stream != "1" ]; then
printf "defaulting to 192kbps stream\n"
mpv http://wreckage-systems.club/radio/8000/stream192.mp3
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment