Browse Source

mp3 search, copy, PIN, IPNS, mazash

master
qo-op 1 year ago
parent
commit
9237478583
  1. 6
      ajouter_video.sh
  2. 4
      zen/new_mp3_in_astroport.sh

6
ajouter_video.sh

@ -122,9 +122,9 @@ else
[[ "$song" == "$artist" ]] && song=""
fi
# Download mp3 from 1st youtube search video result
# Download mp3 from 1st youtube search video result (--write-info-json)
/usr/local/bin/youtube-dl --default-search ytsearch1: \
--ignore-errors --no-mtime --write-info-json \
--ignore-errors --no-mtime \
--embed-thumbnail --metadata-from-title "%(artist)s - %(title)s" --add-metadata \
--extract-audio --audio-format mp3 -o "${YTEMP}/%(id)s_%(title)s.%(ext)s" "$artist $song"
@ -151,7 +151,9 @@ rm -Rf ${YTEMP}
# zenity --warning --width ${large} --text "MP3 copié"
echo "~/.zen/astrXbian/zen/new_mp3_in_astroport.sh \"${FILE_PATH}/\" \"${FILE_NAME}\""
~/.zen/astrXbian/zen/new_mp3_in_astroport.sh "${FILE_PATH}/" "${FILE_NAME}" > /tmp/${CAT}_${TMDB}.log 2>&1
cat /tmp/${CAT}_${TMDB}.log
exit 0
;;

4
zen/new_mp3_in_astroport.sh

@ -131,6 +131,10 @@ if (( $(echo "$CONFIANCE < 0.9" | bc -l) )); then
echo "NEWCOG" | jq
fi
# MEMORIZE NEW PIN
mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/PIN/${IPFSREPFILEID}/
touch ~/.zen/ipfs/.${IPFSNODEID}/PIN/${IPFSREPFILEID}/${G1PUB}
########################################################################
# REFRESH IPNS SELF PUBLISH
########################################################################

Loading…
Cancel
Save