forked from axiom-team/astrXbian
correct
This commit is contained in:
parent
40e12d9363
commit
0b61b7c3ab
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue