#!/bin/sh 
# Pipes a video stream into mpv for watching videos. Argument must be a valid
# URL that hypervideo (youtube-dl) can use. Uses `herbe` for fun.

if [ ! -z $1 ] 
then
  herbe "Preparing for stream..." &
  hypervideo -o - "$1" | mpv -
else 
  herbe "Error: Please enter in a URL to stream from."
fi
