diff --git a/ajouter_video.sh b/ajouter_video.sh index cb1035cbd..4bf15dfa9 100755 --- a/ajouter_video.sh +++ b/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 ;; diff --git a/zen/new_mp3_in_astroport.sh b/zen/new_mp3_in_astroport.sh index 7b1867d89..69bd3887d 100755 --- a/zen/new_mp3_in_astroport.sh +++ b/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 ########################################################################