MP3 copy debug

This commit is contained in:
qo-op 2021-03-03 15:43:13 +01:00
parent 84c108c69e
commit 572e8ef958
1 changed files with 4 additions and 4 deletions

View File

@ -118,8 +118,8 @@ else
fi
# Download mp3 from 1st youtube search video result
/usr/local/bin/youtube-dl --default-search ytsearch1: --download-archive /home/$USER/.ytdl.list \
--continue --no-overwrites --ignore-errors --no-mtime \
/usr/local/bin/youtube-dl --default-search ytsearch1: \
--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"
@ -132,7 +132,7 @@ YID=$(echo "${FILE_NAME}" | cut -d "_" -f 1)
YNAME=$(echo "${FILE_NAME}" | cut -d "_" -f 2)
FILE_PATH="$HOME/astroport/$CAT/$artist/$song"
mkdir -p ${FILE_PATH} && mv ${YTEMP}/* ${FILE_PATH}/
mkdir -p "${FILE_PATH}" && mv ${YTEMP}/* "${FILE_PATH}/"
TMDB=$YID
@ -144,7 +144,7 @@ GROUPES="${XZUID}"
# curl -X POST "http://localhost:8600/api/v1/mazash/recognize" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"cid\":\"QmU3XRYZiebdDMcUwKrvecxyDgtgVY6zaNYrzQBeCkFb2r\",\"extension\":\".mp3\",\"song\":\"${TITLE}\"}"
rm -Rf ${YTEMP}
zenity --warning --width ${large} --text "DEBUG: Votre mp3 est copié dans ${FILE_PATH}"
zenity --warning --width ${large} --text "DEBUG: MP3 copié dans ${FILE_PATH}"
exit 0