From 572e8ef958d0f7539071a2a525abd45cccfcc934 Mon Sep 17 00:00:00 2001 From: qo-op Date: Wed, 3 Mar 2021 15:43:13 +0100 Subject: [PATCH] MP3 copy debug --- ajouter_video.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ajouter_video.sh b/ajouter_video.sh index be16c18..14de0d2 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -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