forked from axiom-team/astrXbian
mp3 search, copy, PIN, IPNS, mazash
This commit is contained in:
parent
bd4ea5265f
commit
9237478583
|
@ -122,9 +122,9 @@ else
|
||||||
[[ "$song" == "$artist" ]] && song=""
|
[[ "$song" == "$artist" ]] && song=""
|
||||||
fi
|
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: \
|
/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 \
|
--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"
|
--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é"
|
# zenity --warning --width ${large} --text "MP3 copié"
|
||||||
echo "~/.zen/astrXbian/zen/new_mp3_in_astroport.sh \"${FILE_PATH}/\" \"${FILE_NAME}\""
|
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
|
~/.zen/astrXbian/zen/new_mp3_in_astroport.sh "${FILE_PATH}/" "${FILE_NAME}" > /tmp/${CAT}_${TMDB}.log 2>&1
|
||||||
|
|
||||||
cat /tmp/${CAT}_${TMDB}.log
|
cat /tmp/${CAT}_${TMDB}.log
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -131,6 +131,10 @@ if (( $(echo "$CONFIANCE < 0.9" | bc -l) )); then
|
||||||
echo "NEWCOG" | jq
|
echo "NEWCOG" | jq
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# MEMORIZE NEW PIN
|
||||||
|
mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/PIN/${IPFSREPFILEID}/
|
||||||
|
touch ~/.zen/ipfs/.${IPFSNODEID}/PIN/${IPFSREPFILEID}/${G1PUB}
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# REFRESH IPNS SELF PUBLISH
|
# REFRESH IPNS SELF PUBLISH
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
Loading…
Reference in New Issue