-
-
Save hapylestat/6421055 to your computer and use it in GitHub Desktop.
simple youtube-dl automatization, initital version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| youtube-dl -F "$1" | |
| read -e -p "Select preffered format:" FRMT | |
| FILE=`youtube-dl -f $FRMT --get-filename "$1"` | |
| youtube-dl -f $FRMT "$1" | |
| ffmpeg -i "$FILE" -c copy -copyts "${FILE}.mp4" | |
| chown user:user "$FILE" | |
| chown user:user "${FILE}.mp4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment