Add youtube-dl config
This commit is contained in:
parent
ea0a2b57be
commit
2d893f91df
2 changed files with 18 additions and 1 deletions
11
config/youtube-dl/config
Normal file
11
config/youtube-dl/config
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# 315 2160p[56]0 vp9
|
||||||
|
# 308 1440p[56]0 vp9
|
||||||
|
# 264 1440p avc1
|
||||||
|
# 299 1080p[56]0 avc1
|
||||||
|
# 137 1080p avc1
|
||||||
|
|
||||||
|
# -f 315+251/308+251/264+140/299+140/137+140/best
|
||||||
|
-f 308+251/264+140/299+140/137+140/best
|
||||||
|
|
||||||
|
--merge-output-format mkv
|
||||||
|
--external-downloader ofhttp
|
|
@ -3,7 +3,11 @@ rel_dir="${PWD#$HOME/}"
|
||||||
echo "Configs relative to home in $rel_dir."
|
echo "Configs relative to home in $rel_dir."
|
||||||
|
|
||||||
link_file() {
|
link_file() {
|
||||||
ln -s "$3$rel_dir/$1" "$HOME/$2"
|
if [ ! -f "$HOME/$2" ]; then
|
||||||
|
ln -s "$3$rel_dir/$1" "$HOME/$2"
|
||||||
|
else
|
||||||
|
echo "$HOME/$2 already exists, skipping..."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
link_file gitconfig .gitconfig
|
link_file gitconfig .gitconfig
|
||||||
|
@ -12,6 +16,8 @@ link_file gpg.conf .gnupg/gpg.conf ../
|
||||||
link_file tmux.conf .tmux.conf
|
link_file tmux.conf .tmux.conf
|
||||||
link_file vim .vim
|
link_file vim .vim
|
||||||
link_file vimrc .vimrc
|
link_file vimrc .vimrc
|
||||||
|
mkdir -p $HOME/.config/youtube-dl
|
||||||
|
link_file config/youtube-dl/config .config/youtube-dl/config ../../
|
||||||
link_file zshrc .zshrc
|
link_file zshrc .zshrc
|
||||||
|
|
||||||
if test x"$(uname -s)" = x"Darwin"; then
|
if test x"$(uname -s)" = x"Darwin"; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue