added youtube-dl formats

This commit is contained in:
aj 2018-12-12 11:24:27 +00:00
parent 61b829171c
commit 8f81a5b17b
3 changed files with 20 additions and 0 deletions

8
youtube-dl/audioconfig Normal file
View File

@ -0,0 +1,8 @@
-o ~/Music/youtube/%(uploader)s/%(title)s.%(ext)s
-f "bestaudio/best"
-x
--audio-format flac

5
youtube-dl/config Normal file
View File

@ -0,0 +1,5 @@
-o ~/Videos/youtube/%(uploader)s/%(title)s.%(ext)s
#-f "best"
-f "bestvideo+bestaudio/best"

7
youtube-dl/youtube-dl-audio.sh Executable file
View File

@ -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