From d38037b0873a9a6ddfc9f08cb538c133cf4c303e Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 4 Jun 2020 15:49:29 +0200 Subject: [PATCH] [[ $er ]] && echo $er --- www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh b/www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh index c706297..c46c7c5 100755 --- a/www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh +++ b/www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh @@ -3,6 +3,7 @@ ARTIST=$1 SONG=$2 export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || er+=" ipfs daemon not running" +[[ $er ]] && echo $er echo ' __ @@ -33,6 +34,7 @@ echo $SONG # %EDlmG9QW2U2wYnvIIKf//GrDxYoQWGL/Jk3Nw0obi8M=.sha256 # http://golly.sourceforge.net/ mysearch="$ARTIST $SONG" +mkdir -p /home/$YOU/.zen/music/${artist}/${song}/ youtube-dl --default-search ytsearch1: --download-archive /home/$YOU/.ytdl.list --continue --no-overwrites --metadata-from-title "$artist - %(title)s" --add-metadata --embed-thumbnail --ignore-errors -f m4a --extract-audio -o "/home/$YOU/.zen/music/${artist}/${song}/%(id)s.%(title)s.%(uploader_id)s.%(ext)s" "$mysearch" >> /tmp/youtube-dl.log 2>&1 # Finaly this is made directly....