diff --git a/ajouter_video.sh b/ajouter_video.sh index aecfbb6..e625f0b 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -175,7 +175,7 @@ URLENCODE_FILE_NAME=$(echo ${FILE_NAME} | jq -Rr @uri) echo "${CAT};$TMDB;$YEAR;$TITLE;$SAISON;${GENRES};${GROUPES};$RES;/ipfs/_IPFSREPFILEID_/$URLENCODE_FILE_NAME" > ~/astroport/${CAT}/${TMDB}/ajouter_video.txt # _IPFSREPFILEID_ is replaced later -mv "${FILE_PATH}/${FILE_NAME}" ~/astroport/${CAT}/${TMDB}/ +mv "${FILE_PATH}/${FILE_NAME}" ~/astroport/${CAT}/${TMDB}/ && zenity --warning --width ${large} --text "Votre fichier est prêt ~/astroport/${CAT}/${TMDB}/${FILE_NAME} à embarquer. Cliquez sur OK puis patientez quelques minutes..." ######################################################################## # ADD $FILE to IPFS / ASTROPORT / KODI diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 23e21a7..283ea9d 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -37,7 +37,7 @@ TITLE="${file%.*}" [[ ! $(echo "$path" | cut -d '/' -f 4 | grep 'astroport') ]] && echo "Fichiers à placer dans ~/astroport/ MERCI" && exit 1 TYPE=$(echo "$path" | cut -d '/' -f 5 ) # ex: /home/$YOU/astroport/... film, youtube, mp3 CAT=$(echo "$TYPE" | awk '{ print tolower($0) }') -[[ ! $CAT ]] && echo "CAT est le 6e champs de $path" && exit 1 +[[ ! $CAT ]] && echo "CAT est le 5e champs de $path" && exit 1 PREFIX=$(echo "$TYPE" | head -c 1 | awk '{ print toupper($0) }' ) # ex: F, Y, M