#!/bin/bash

pid=$(pidof "mpv")

if [[ "$pid" ]]; then
  kill "$pid"
fi

mpv "$1"