mirror of
				https://github.com/casjaysdevdocker/youtube-dl
				synced 2025-11-03 19:02:21 -05:00 
			
		
		
		
	🗃️ Committing everything that changed 🗃️
This commit is contained in:
		@@ -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:-}; }
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								bin/ytda
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								bin/ytda
									
									
									
									
									
								
							@@ -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 $?
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user