Commit 266de284 authored by 98WuG's avatar 98WuG
Browse files

more detailed log (add date)

parent dc5b8b62
......@@ -5,7 +5,7 @@ DOWNLOAD_FOLDER="downloads"
DOWNLOAD_URL="$DOWNLOAD_FOLDER/$(pwgen).mp4"
LOG="ydl.log"
echo "Shell script received \"$@\"" >> $DIR/$LOG
echo "Shell script received \"$@\" on $(date)" >> $DIR/$LOG
mkdir -p "$DIR/$DOWNLOAD_FOLDER" >> $DIR/$LOG
setfacl -m u:apache:rwx "$DIR/$DOWNLOAD_FOLDER" >> $DIR/$LOG
OUTPUT="$(youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' -o "$DIR/$DOWNLOAD_URL" "$@")"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment