Browse Source

format _rip_audio

master
Markus Bergholz 2 years ago
parent
commit
de732228b4
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      bash/mb.bashrc

+ 5
- 5
bash/mb.bashrc View File

@@ -127,10 +127,10 @@ 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
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