From 448fea384491a1e88a104b67cd6b154d81f0d687 Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 4 Jun 2020 15:46:32 +0200 Subject: [PATCH] /home/$YOU/ --- www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh b/www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh index f5e4c0b..c706297 100755 --- a/www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh +++ b/www/LOVELand/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh @@ -2,6 +2,8 @@ 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" + echo ' __ __ _____ ______________ ___ __ / / @@ -31,7 +33,7 @@ echo $SONG # %EDlmG9QW2U2wYnvIIKf//GrDxYoQWGL/Jk3Nw0obi8M=.sha256 # http://golly.sourceforge.net/ mysearch="$ARTIST $SONG" -youtube-dl --default-search ytsearch1: --download-archive /home/pi/.ytdl.list --continue --no-overwrites --metadata-from-title "$artist - %(title)s" --add-metadata --embed-thumbnail --ignore-errors -f m4a --extract-audio -o "/home/pi/.zen/music/${artist}/${song}/%(id)s.%(title)s.%(uploader_id)s.%(ext)s" "$mysearch" >> /tmp/youtube-dl.log 2>&1 +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.... # so it is not put on ipfs... zenTag must attach contracts...