From 197d42fca6855f2e214ca4dbfc343ed0dc36a79f Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 19 Nov 2022 20:26:21 +0100 Subject: [PATCH] # ISSUE11 : https://git.p2p.legal/qo-op/Astroport.ONE/issues/11 --- tools/new_file_in_astroport.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/new_file_in_astroport.sh b/tools/new_file_in_astroport.sh index 78904689..bc07ed4a 100755 --- a/tools/new_file_in_astroport.sh +++ b/tools/new_file_in_astroport.sh @@ -146,6 +146,23 @@ esac MEDIAKEY="${INDEXPREFIX}${REFERENCE}" echo ">>>>>>>>>> $MEDIAKEY ($MIME) <<<<<<<<<<<<<<<" + # CapitalGluedTitle + CapitalGluedTitle=$(echo "${TITLE}" | sed -r 's/\<./\U&/g' | sed 's/ //g') + +######################### Decimal convert + rm ~/.zen/tmp/decimal + echo "$CapitalGluedTitle" > ~/.zen/tmp/convert + + # iteracte through each like + while read -r -n1 char; do + arr+=$(printf '%d+' "'$char"); + done <<< ~/.zen/tmp/convert + + printf '%s' "${arr[@]::-3}" > ~/.zen/tmp/decimal + ## TODO USE IT TO MAKE A MEDIAKEY IMAGE KEY "SONDE" FOR FILTERING ? + # ISSUE11 : https://git.p2p.legal/qo-op/Astroport.ONE/issues/11 +########################## + ## RUBISH ?? ######################################################################## mkdir -p ~/.zen/game/players/$PLAYER/ipfs/.${IPFSNODEID}/astroport/kodi/vstream/ @@ -458,9 +475,6 @@ then [[ $CAT == "Film" ]] && tdb="movie" [[ $CAT == "Serie" ]] && tdb="tv" - # CapitalGluedTitle - CapitalGluedTitle=$(echo "${TITLE}" | sed -r 's/\<./\U&/g' | sed 's/ //g') - GENRE=$(cat ~/astroport/${TyPE}/${REFERENCE}/ajouter_video.txt | cut -d ';' -f 6 | sed 's/|/ /g' | jq -r '@csv' | sed 's/ /_/g' | sed 's/,/ /g' | sed 's/\"//g' ) echo $GENRE