diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 8850fa7..5f7a18d 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -414,6 +414,7 @@ then GENRE=$(cat ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}/ajouter_video.txt | cut -d ';' -f 6 | sed 's/|/ /g' ) MIME=$(file --mime-type "$HOME/astroport/${TYPE}/${REFERENCE}/${file}" | cut -d ':' -f 2 | cut -d ' ' -f 2) + REAL=$MIME if [[ $(echo "$MIME" | grep 'video') ]]; then TEXT="

"${TITLE}"

" MIME="text/vnd.tiddlywiki" @@ -434,6 +435,7 @@ then "text": "'${TEXT}'", "title": "'${TITLE}'", "type": "'${MIME}'", + "mime": "'${REAL}'", "cat": "'${CAT}'", "poster": "'${SCREENDIR}/screen.png'", "ipfsroot": "'${IPFSREPFILEID}'",