summaryrefslogtreecommitdiff
path: root/bin/play
diff options
context:
space:
mode:
authorHorus32014-03-10 03:22:20 +0100
committerHorus32014-03-10 03:22:20 +0100
commit89f1eb5bdca6c57293d3800641cc58a53c857089 (patch)
tree8e7d3ed71cae9c0a56b35bab26727e34d9d63af8 /bin/play
parentf34158ad920e17f4d506edcb6a6379e233e208f1 (diff)
downloaddotfiles-89f1eb5bdca6c57293d3800641cc58a53c857089.tar.gz
typo and stuff
Diffstat (limited to 'bin/play')
-rwxr-xr-xbin/play3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/play b/bin/play
index 0f6586c..8d480e7 100755
--- a/bin/play
+++ b/bin/play
@@ -74,7 +74,8 @@ if [[ "$@" =~ ^https?://.+\.[a-z]{2}[a-z]* ]]; then
wget -q -O "file" "$@" &
echo "Starting download. Ready to play in 2 sec."
sleep 2
- mpv file
+ $player file
+ rm -v file
echo "TODO: Moving to archiv. Not implemented yet."
exit 0
elif [[ $player =~ mpv$ ]] && [ $download ] && ( [ ! $download = "n" ] && [ ! $download = "N" ] && [ ! $download = "no" ] && [ ! $download = "nein" ] && [ ! $download = "NO" ]); then