summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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