Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gerald Wu
youtube-dl-web
Commits
266de284
Commit
266de284
authored
Jul 03, 2018
by
98WuG
Browse files
more detailed log (add date)
parent
dc5b8b62
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/download.sh
View file @
266de284
...
...
@@ -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
"
"
$@
"
)
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment