#!/bin/bash ARTIST=$1 SONG=$2 echo ' __ __ _____ ______________ ___ __ / / / / / / _ \/ ___/ ___/ __ `/ / / / / / / /_/ / __(__ |__ ) /_/ / /_/ / /_/ \__, /\___/____/____/\__,_/\__, / (_) /____/ /____/ identifying' echo $ARTIST echo $SONG # WHOAMI=$(sbotc whoami | jq -r .id) # sbotc query.read '{"query":[{"$filter":{"value":{"author": "'"$WHOAMI"'", "content":{"type":"zenyta"}}}}]}' | jq -r .value?.content?.text | tail -n 1 # this command is reagularly is run in cron_MINUTE.sh so your stations then take cae to miammiam.sh your youtube search # # We must transform that input information into link to copy from # We are going to use youtube-dl dry run. # http://golly.sourceforge.net/ # [@Christian Bundy](@+oaWWDs8g73EZFUMfW37R/ULtFEjwKN/DczvdYihjbU=.ed25519) # thanks for your security hole spotting.. # I know that this could become a badly used account... # It will be introduced as a learning account. (being able to regenerate). # the above algo rythm is calibrated on the "game of life" mixed with angel problem solution. # will it produce "speeders shapings" i hope... # %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 # Finaly this is made directly.... # so it is not put on ipfs... zenTag must attach contracts...