#!/bin/sh

if [ $1 == "start" ]
then
    mpv https://ycradio.stream.publicradio.org/ycradio.aac &
    echo "$!" > ~/.local/share/mpv/radio
elif [ $1 == "stop" ]
then
    kill $(cat ~/.local/share/mpv/radio)
fi
