fixxxx
This commit is contained in:
parent
1e8de52e8b
commit
6c5b55b1fe
@ -415,17 +415,19 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
echo "${UPLAYERSTIDS[@]}"
|
echo "${UPLAYERSTIDS[@]}"
|
||||||
UPLAYERSTIDS_STR=""
|
UPLAYERSTIDS_STR=""
|
||||||
for item in "${UPLAYERSTIDS[@]}"; do
|
for item in "${UPLAYERSTIDS[@]}"; do
|
||||||
UPLAYERSTIDS_STR+=" * $item \n"
|
UPLAYERSTIDS_STR+=" - $item \n"
|
||||||
done
|
done
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
# (RE)MAKE "SECTORTW_NEWS" TIDDLER
|
# (RE)MAKE "SECTORTW_NEWS" TIDDLER
|
||||||
cat ${MY_PATH}/../templates/data/SECTORTW_NEWS.json \
|
sed -E \
|
||||||
| sed -e "s~_SECTOR_~${SECTOR}~g" \
|
-e "s~_SECTOR_~${SECTOR}~g" \
|
||||||
-e "s~_MOATS_~${MOATS}~g" \
|
-e "s~_MOATS_~${MOATS}~g" \
|
||||||
-e "s~_UPLANET_~https://qo-op.com~g" \
|
-e "s~_UPLANET_~https://qo-op.com~g" \
|
||||||
-z "s~_UPLAYERSTIDS_~${UPLAYERSTIDS_STR}~g" \
|
-e "s~_UPLAYERSTIDS_~$(echo -n "$UPLAYERSTIDS_STR")~" \
|
||||||
-e "s~_SECTORTW_~${SECTORIPNS}/TW~g" \
|
-e "s~_SECTORTW_~${SECTORIPNS}/TW~g" \
|
||||||
> ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json
|
${MY_PATH}/../templates/data/SECTORTW_NEWS.json > ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json
|
||||||
|
|
||||||
|
|
||||||
echo "SECTORTW_NEWS $SECTOR SECTORTW=${SECTORIPNS}/TW :: ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json"
|
echo "SECTORTW_NEWS $SECTOR SECTORTW=${SECTORIPNS}/TW :: ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json"
|
||||||
${MY_PATH}/TW/delete_tiddler.sh \
|
${MY_PATH}/TW/delete_tiddler.sh \
|
||||||
|
@ -777,7 +777,7 @@ mv ~/.zen/tmp/screen.png ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/screen.png
|
|||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# ADD $FILE to IPFS / ASTROPORT / KODI
|
# ADD $FILE to IPFS / ASTROPORT / KODI
|
||||||
echo "(♥‿‿♥) new_file_in_astroport.sh \"$HOME/Astroport/${PLAYER}/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\"" "$3"
|
echo "(♥‿‿♥) new_file_in_astroport.sh \"$HOME/Astroport/${PLAYER}/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\"" "$3" "$PLAYER"
|
||||||
[[ -f ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/ajouter_video.txt ]] && cat ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/ajouter_video.txt
|
[[ -f ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/ajouter_video.txt ]] && cat ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/ajouter_video.txt
|
||||||
# LOG NOISE # [[ -f ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/video.json ]] && cat ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/video.json
|
# LOG NOISE # [[ -f ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/video.json ]] && cat ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/video.json
|
||||||
########################################################################
|
########################################################################
|
||||||
@ -808,7 +808,7 @@ if [[ ! -s ~/Astroport/${PLAYER}/${CAT}/${MEDIAID}/${MEDIAKEY}.dragdrop.json ]];
|
|||||||
#else" >> ~/Astroport/${PLAYER}/Add_${MEDIAKEY}_script.sh
|
#else" >> ~/Astroport/${PLAYER}/Add_${MEDIAKEY}_script.sh
|
||||||
|
|
||||||
# $3 is the G1PUB of the PLAYER
|
# $3 is the G1PUB of the PLAYER
|
||||||
echo "${MY_PATH}/tools/new_file_in_astroport.sh \"$HOME/Astroport/${PLAYER}/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\" \"$G1PUB\"" >> ~/Astroport/${PLAYER}/Add_${MEDIAKEY}_script.sh
|
echo "${MY_PATH}/tools/new_file_in_astroport.sh \"$HOME/Astroport/${PLAYER}/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\" \"$G1PUB\" \"$PLAYER\"" >> ~/Astroport/${PLAYER}/Add_${MEDIAKEY}_script.sh
|
||||||
|
|
||||||
#[[ $CHOICE == "TMDB" ]] && echo "fi" >> ~/Astroport/${PLAYER}/Add_${MEDIAKEY}_script.sh
|
#[[ $CHOICE == "TMDB" ]] && echo "fi" >> ~/Astroport/${PLAYER}/Add_${MEDIAKEY}_script.sh
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
######## #### ### ## #
|
######## #### ### ## #
|
||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
|
|
||||||
|
exec 2>&1 >> ~/.zen/tmp/ajouter_media.log
|
||||||
|
|
||||||
MY_PATH="`dirname \"$0\"`" # relative
|
MY_PATH="`dirname \"$0\"`" # relative
|
||||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||||
. "$MY_PATH/my.sh"
|
. "$MY_PATH/my.sh"
|
||||||
@ -46,10 +48,11 @@ last_char=${path:length-1:1}
|
|||||||
file="$2"
|
file="$2"
|
||||||
|
|
||||||
G1PUB="$3"
|
G1PUB="$3"
|
||||||
|
PLAYER="$4"
|
||||||
|
|
||||||
### ECHO COMMAND RECEIVED :
|
### ECHO COMMAND RECEIVED :
|
||||||
echo "FOUNIR 'PATH' 'FILE' et 'G1PUB' du PLAYER inscrit sur la STATION"
|
echo "FOUNIR 'PATH' 'FILE' et 'G1PUB' du PLAYER inscrit sur la STATION"
|
||||||
echo "$MY_PATH/new_file_in_astroport.sh PATH/ \"$path\" FILE \"$file\" G1PUB \"$G1PUB\" "
|
echo "$MY_PATH/new_file_in_astroport.sh PATH/ \"$path\" FILE \"$file\" G1PUB \"$G1PUB\" PLAYER \"$PLAYER\" "
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
## FILE ANALYSE & IDENTIFICATION TAGGINGS
|
## FILE ANALYSE & IDENTIFICATION TAGGINGS
|
||||||
@ -78,9 +81,9 @@ MIME=$(file --mime-type -b "${path}${file}")
|
|||||||
# GET CONNECTED PLAYER
|
# GET CONNECTED PLAYER
|
||||||
########################################################################
|
########################################################################
|
||||||
[[ ! $G1PUB ]] && G1PUB=$(cat ~/.zen/game/players/.current/.g1pub 2>/dev/null)
|
[[ ! $G1PUB ]] && G1PUB=$(cat ~/.zen/game/players/.current/.g1pub 2>/dev/null)
|
||||||
|
[[ ! $PLAYER ]] && PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null);
|
||||||
|
|
||||||
PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null);
|
[[ ! $PLAYER ]] && echo "(╥☁╥ ) No player. Please Login" && exit 1
|
||||||
[[ ! $PLAYER ]] && echo "(╥☁╥ ) No current player. Please Login" && exit 1
|
|
||||||
|
|
||||||
# NOT CURRENT PLAYER (CHECK FOR TW & KEY
|
# NOT CURRENT PLAYER (CHECK FOR TW & KEY
|
||||||
[[ $(ipfs key list -l | grep -w $G1PUB) ]] \
|
[[ $(ipfs key list -l | grep -w $G1PUB) ]] \
|
||||||
|
Loading…
Reference in New Issue
Block a user