From 8f81a5b17b1723ffb5789a62b16dbe49939b70a6 Mon Sep 17 00:00:00 2001 From: aj Date: Wed, 12 Dec 2018 11:24:27 +0000 Subject: [PATCH] added youtube-dl formats --- youtube-dl/audioconfig | 8 ++++++++ youtube-dl/config | 5 +++++ youtube-dl/youtube-dl-audio.sh | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 youtube-dl/audioconfig create mode 100644 youtube-dl/config create mode 100755 youtube-dl/youtube-dl-audio.sh 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