From 4c9d07d24c9b297cbf054eef95bc199f82b35bd9 Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 17 Jun 2021 17:52:42 +0200 Subject: [PATCH] create json debug --- ajouter_video.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ajouter_video.sh b/ajouter_video.sh index bb43eca..c1258d9 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -399,11 +399,10 @@ echo "${CAT};${TMDB};${YEAR};${TITLE};${SAISON};${GENRES};${GROUPES};${RES};/ipf ## video_timestamp INDEX TMDB="$(date -u +%s%N | cut -b1-13)" - ## SIMPLE JSON - jq -n --arg ts "$TMDB" --arg title "$TITLE" --arg desc "$DESCRIPTON" --arg htag "$HASHTAG" '{"timestamp":$ts,"ipfs":"_IPFSREPFILEID_","ipns":"_IPNSKEY_","title":$title,"desc":$desc,"htag":$htag}' > ~/astroport/${CAT}/${TMDB}/video.json - - ## MOVE FILE TO IMPORT ZONE mkdir -p ~/astroport/${CAT}/${TMDB}/ + ## CREATE SIMPLE JSON + jq -n --arg ts "$TMDB" --arg title "$TITLE" --arg desc "$DESCRIPTON" --arg htag "$HASHTAG" '{"timestamp":$ts,"ipfs":"_IPFSREPFILEID_","ipns":"_IPNSKEY_","title":$title,"desc":$desc,"htag":$htag}' > ~/astroport/${CAT}/${TMDB}/video.json + ## MOVE FILE TO IMPORT ZONE mv -f "${FILE_PATH}/${FILE_NAME}" "$HOME/astroport/${CAT}/${TMDB}/${TITLE}.${FILE_EXT}" FILE_NAME="${TITLE}.${FILE_EXT}"