Browse Source

add _rip_audio function (wrapper for youtube-dl)

master
Markus Bergholz 2 years ago
parent
commit
32a170fe3c
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      bash/mb.bashrc

+ 10
- 0
bash/mb.bashrc View File

@@ -124,3 +124,13 @@ function _docker_tabula_rasa(){
}

alias updatebash="source ~/.bashrc"

function _rip_audio() {

if (("$#" != 1)); then
echo "source is missing..."
else
youtube-dl --prefer-ffmpeg --embed-thumbnail --add-metadata --metadata-from-title "%(artist)s - %(title)s" --audio-quality 0 --audio-format mp3 --extract-audio "$1"
fi

}

Loading…
Cancel
Save