dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0c1a472b11dd113b110fc78f2d36b22a4cee06af
parent 6de91407008983a8a215a44529ba2340663227ce
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 20 Jun 2018 10:15:32 -0400

Add metadata and move to music library by default

Diffstat:
Mlinks/bin/youtube-dl-music.sh | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/links/bin/youtube-dl-music.sh b/links/bin/youtube-dl-music.sh @@ -22,9 +22,11 @@ $prefix youtube-dl \ --output "%(playlist_index)s-%(title)s.%(ext)s" \ "$1" -read -p "add metadata? [y/N] " -n 1 -r +read -p "add metadata? [Y/n] " -n 1 -r echo -if [[ $REPLY =~ ^[Yy]$ ]]; then +if [[ $REPLY =~ ^[Nn]$ ]]; then + exit 0 +else artist="Unknown Artist" album="Unknown Album" @@ -58,9 +60,11 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then # Revert default behavior IFS=$SAVEIFS - read -p "move to music folder? [y/N] " -n 1 -r + read -p "move to music folder? [Y/n] " -n 1 -r echo - if [[ $REPLY =~ ^[Yy]$ ]]; then + if [[ $REPLY =~ ^[Nn]$ ]]; then + exit 0 + else if [[ "$(uname)" == 'Darwin' ]]; then musicroot="$HOME/Music/iTunes/iTunes Media/Music/"