🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2022-10-11 16:09:09 -04:00
parent 15a9c002f5
commit 3004c1fdad
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F
3 changed files with 12 additions and 6 deletions

View File

@ -18,18 +18,16 @@
# @@sudo/root : no
# @@Template : other/docker-entrypoint
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set bash options
[ -n "$DEBUG" ] && set -x
set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
APPNAME="$(basename "$0" 2>/dev/null)"
VERSION="202210071527-git"
HOME="${USER_HOME:-$HOME}"
USER="${SUDO_USER:-$USER}"
RUN_USER="${SUDO_USER:-$USER}"
SCRIPT_SRC_DIR="${BASH_SOURCE%/*}"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set bash options
[ "$1" == "--debug" ] && set -xo pipefail && export SCRIPT_OPTS="--debug" && export _DEBUG="on"
[ "$1" == "--raw" ] && export SHOW_RAW="true"
set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set functions
__version() { echo -e ${GREEN:-}"$VERSION"${NC:-}; }

View File

@ -1,4 +1,8 @@
#!/usr/bin/env sh
# Set bash options
[ -n "$DEBUG" ] && set -x
set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
youtube-dl -f bestaudio --extract-audio --audio-format mp3 --embed-thumbnail --add-metadata --audio-quality 320k --config-location "$HOME/.config/youtube-dl/music" "$@"
exit $?

View File

@ -1,4 +1,8 @@
#!/usr/bin/env sh
# Set bash options
[ -n "$DEBUG" ] && set -x
set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
youtube-dl -f bestvideo+bestaudio --config-location "$HOME/.config/youtube-dl/video" "$@"
exit $?