/home/$YOU/

This commit is contained in:
qo-op 2020-06-04 15:46:32 +02:00
parent d3bc8293f1
commit 448fea3844
1 changed files with 3 additions and 1 deletions

View File

@ -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...