diff --git a/youtube-dl/audioconfig b/youtube-dl/audioconfig new file mode 100644 index 0000000..aa959f7 --- /dev/null +++ b/youtube-dl/audioconfig @@ -0,0 +1,8 @@ + +-o ~/Music/youtube/%(uploader)s/%(title)s.%(ext)s + +-f "bestaudio/best" + +-x + +--audio-format flac diff --git a/youtube-dl/config b/youtube-dl/config new file mode 100644 index 0000000..efb07f0 --- /dev/null +++ b/youtube-dl/config @@ -0,0 +1,5 @@ + +-o ~/Videos/youtube/%(uploader)s/%(title)s.%(ext)s + +#-f "best" +-f "bestvideo+bestaudio/best" diff --git a/youtube-dl/youtube-dl-audio.sh b/youtube-dl/youtube-dl-audio.sh new file mode 100755 index 0000000..0e82722 --- /dev/null +++ b/youtube-dl/youtube-dl-audio.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +if [ -z $1 ]; then + echo "no url given" +else + youtube-dl --config-location ~/.config/youtube-dl/audioconfig $1 +fi