summaryrefslogtreecommitdiffstats
path: root/bin/yout2ogg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/yout2ogg')
-rwxr-xr-xbin/yout2ogg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/yout2ogg b/bin/yout2ogg
index b6ab9c9..b316099 100755
--- a/bin/yout2ogg
+++ b/bin/yout2ogg
@@ -1,6 +1,6 @@
#! /bin/sh
set -euf
-target_folder="./music"
+target_folder=${target-./}
uri=$1
id=$(echo "$uri" | sed -n 's@^https\?://www\.youtube\.com/watch?v=@@p' | sed 's/#.*$//')