<br>{{!!duree}}<br>
This commit is contained in:
parent
51520447c9
commit
90bf7626ae
|
@ -614,8 +614,8 @@ esac
|
||||||
# Screen capture
|
# Screen capture
|
||||||
########################################################################
|
########################################################################
|
||||||
if [[ $(echo $DISPLAY | cut -d ':' -f 1) == "" ]]; then
|
if [[ $(echo $DISPLAY | cut -d ':' -f 1) == "" ]]; then
|
||||||
espeak "taking a screen shot"
|
espeak "beware taking screen shot in 3 seconds"
|
||||||
sleep 1
|
sleep 3
|
||||||
import -window root ~/.zen/tmp/screen.png
|
import -window root ~/.zen/tmp/screen.png
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -625,14 +625,6 @@ fi
|
||||||
mkdir -p ~/astroport/${CAT}/${MEDIAID}/
|
mkdir -p ~/astroport/${CAT}/${MEDIAID}/
|
||||||
mv ~/.zen/tmp/screen.png ~/astroport/${CAT}/${MEDIAID}/screen.png
|
mv ~/.zen/tmp/screen.png ~/astroport/${CAT}/${MEDIAID}/screen.png
|
||||||
|
|
||||||
|
|
||||||
## Extract thumbnail
|
|
||||||
MIME=$(file --mime-type -b "$HOME/astroport/${CAT}/${MEDIAID}/${TITLE}${SAISON}.${FILE_EXT}")
|
|
||||||
|
|
||||||
mv ~/astroport/${CAT}/${MEDIAID}/thumbnail.png ~/astroport/${CAT}/${MEDIAID}/${MOATS}.thumbnail.png >/dev/null 2>&1
|
|
||||||
[[ $(echo $MIME | grep video) ]] && ffmpeg -i "$HOME/astroport/${CAT}/${MEDIAID}/${TITLE}${SAISON}.${FILE_EXT}" -r 1/300 -vf scale=-1:120 -vcodec png $HOME/astroport/${CAT}/${MEDIAID}/thumbnail.png
|
|
||||||
[[ ! -f ~/astroport/${CAT}/${MEDIAID}/thumbnail.png ]] && echo "(╥☁╥ ) THUMBNAIL FAILED"
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# ADD $FILE to IPFS / ASTROPORT / KODI
|
# ADD $FILE to IPFS / ASTROPORT / KODI
|
||||||
echo "(♥‿‿♥) new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\"" "$3"
|
echo "(♥‿‿♥) new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\"" "$3"
|
||||||
|
@ -670,9 +662,7 @@ echo "${MY_PATH}/tools/new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIA
|
||||||
|
|
||||||
#[[ $CHOICE == "TMDB" ]] && echo "fi" >> ~/astroport/Add_${MEDIAKEY}_script.sh
|
#[[ $CHOICE == "TMDB" ]] && echo "fi" >> ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||||
|
|
||||||
echo "rm -f /tmp/\${MEDIAKEY}.pass
|
echo "mv ~/astroport/Add_${MEDIAKEY}_script.sh \"$HOME/astroport/Done_${FILE_NAME}.sh\"
|
||||||
rm -f /tmp/\${MEDIAKEY}.dunikey ## REMOVE KEYS
|
|
||||||
mv ~/astroport/Add_${MEDIAKEY}_script.sh \"$HOME/astroport/Done_${FILE_NAME}.sh\"
|
|
||||||
" >> ~/astroport/Add_${MEDIAKEY}_script.sh
|
" >> ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||||
|
|
||||||
chmod +x ~/astroport/Add_${MEDIAKEY}_script.sh
|
chmod +x ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||||
|
@ -680,7 +670,7 @@ chmod +x ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||||
########################################################################
|
########################################################################
|
||||||
## USE PLAYER G1PUB AS MEDIA WALLET
|
## USE PLAYER G1PUB AS MEDIA WALLET
|
||||||
MEDIAPUBKEY=$(cat ~/.zen/game/players/.current/.g1pub)
|
MEDIAPUBKEY=$(cat ~/.zen/game/players/.current/.g1pub)
|
||||||
G1BALANCE=$(${MY_PATH}/tools/jaklis/jaklis.py balance -p $G1PUB)
|
G1BALANCE=$(${MY_PATH}/tools/jaklis/jaklis.py balance -p $G1PUB 2>/dev/null )
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "# ZENBALANCE for ${MEDIAKEY} , WALLET $MEDIAPUBKEY"
|
echo "# ZENBALANCE for ${MEDIAKEY} , WALLET $MEDIAPUBKEY"
|
||||||
|
@ -698,13 +688,13 @@ FILE_SIZE=$(echo "${FILE_BSIZE}" | awk '{ split( "B KB MB GB TB PB" , v ); s=1;
|
||||||
ZENBALANCE=0
|
ZENBALANCE=0
|
||||||
#fi
|
#fi
|
||||||
########################################################################
|
########################################################################
|
||||||
espeak "Ready to eat"
|
|
||||||
zenity --warning --width 360 --text "(♥‿‿♥) $MEDIAKEY IPFS MIAM (ᵔ◡◡ᵔ)"
|
zenity --warning --width 360 --text "(♥‿‿♥) $MEDIAKEY IPFS MIAM (ᵔ◡◡ᵔ)"
|
||||||
|
espeak "Adding $CAT to I P F S. Please Wait"
|
||||||
|
|
||||||
bash ~/astroport/Add_${MEDIAKEY}_script.sh "noh265"
|
bash ~/astroport/Add_${MEDIAKEY}_script.sh "noh265"
|
||||||
|
|
||||||
espeak "T W index recording"
|
|
||||||
zenity --warning --width 320 --text "Ajout à votre TW ${PLAYER}"
|
zenity --warning --width 320 --text "Ajout à votre TW ${PLAYER}"
|
||||||
|
espeak "Updating T W Index"
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
|
@ -10,8 +10,8 @@ for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#");
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
## And friends
|
||||||
for friendnode in $(cat ~/.zen/game/players/.current/FRIENDS/*/.astronautens);
|
for friendnode in $(cat ~/.zen/game/players/*/FRIENDS/*/.astronautens | uniq);
|
||||||
do
|
do
|
||||||
ipfs ping -n 3 $friendnode
|
ipfs ping -n 3 $friendnode
|
||||||
[ $? = 0 ] && ipfs swarm connect $friendnode \
|
[ $? = 0 ] && ipfs swarm connect $friendnode \
|
||||||
|
|
|
@ -300,18 +300,14 @@ then
|
||||||
echo $GENRE $SAISON
|
echo $GENRE $SAISON
|
||||||
|
|
||||||
## Add screenshot (TODO : Make it better. Check what to put; if used & usefull
|
## Add screenshot (TODO : Make it better. Check what to put; if used & usefull
|
||||||
[[ -f $HOME/astroport/${TyPE}/${REFERENCE}/screen.png ]] && IPSCREEN=$(ipfs add -q "$HOME/astroport/${TyPE}/${REFERENCE}/screen.png" | tail -n 1)
|
[[ -f $HOME/astroport/${TyPE}/${REFERENCE}/screen.png ]] && SCREENSHOT=$(ipfs add -q "$HOME/astroport/${TyPE}/${REFERENCE}/screen.png" | tail -n 1)
|
||||||
[[ $IPSCREEN ]] && POSTER=$IPSCREEN
|
|
||||||
|
|
||||||
[[ -f $HOME/astroport/${TyPE}/${REFERENCE}/thumbnail.png ]] && IPTHUMB=$(ipfs add -q "$HOME/astroport/${TyPE}/${REFERENCE}/thumbnail.png" | tail -n 1)
|
|
||||||
[[ $IPTHUMB ]] && POSTER=$IPTHUMB
|
|
||||||
|
|
||||||
if [[ $(echo "$MIME" | grep 'video') ]]; then
|
if [[ $(echo "$MIME" | grep 'video') ]]; then
|
||||||
|
|
||||||
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'>
|
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'>
|
||||||
</video><h1><a target='tmdb' href='https://www.themoviedb.org/"${tdb}"/"${REFERENCE}"'>"${TITLE}"</a></h1>
|
</video><h1><a target='tmdb' href='https://www.themoviedb.org/"${tdb}"/"${REFERENCE}"'>"${TITLE}"</a></h1>
|
||||||
<h2>"$DESCRIPTION"</h2>
|
<h2>"$DESCRIPTION"</h2>
|
||||||
<img src='/ipfs/"${POSTER}"' width=33%><br>
|
<br>{{!!duree}}<br>
|
||||||
<\$button class='tc-tiddlylink'>
|
<\$button class='tc-tiddlylink'>
|
||||||
<\$list filter='[tag[G1${CAT}]]'>
|
<\$list filter='[tag[G1${CAT}]]'>
|
||||||
<\$action-navigate \$to=<<currentTiddler>> \$scroll=no/>
|
<\$action-navigate \$to=<<currentTiddler>> \$scroll=no/>
|
||||||
|
@ -352,7 +348,7 @@ then
|
||||||
"cat": "'${CAT}'",
|
"cat": "'${CAT}'",
|
||||||
"size": "'${FILE_BSIZE}'",
|
"size": "'${FILE_BSIZE}'",
|
||||||
"description": "'${DESCRIPTION}'",
|
"description": "'${DESCRIPTION}'",
|
||||||
"poster": "'/ipfs/${POSTER}'",
|
"screenshot": "'/ipfs/${POSTER}'",
|
||||||
"ipfsroot": "'/ipfs/${IPFSREPFILEID}'",
|
"ipfsroot": "'/ipfs/${IPFSREPFILEID}'",
|
||||||
"file": "'${file}'",
|
"file": "'${file}'",
|
||||||
"ipfs": "'/ipfs/${IPFSREPFILEID}/${URLENCODE_FILE_NAME}'",
|
"ipfs": "'/ipfs/${IPFSREPFILEID}/${URLENCODE_FILE_NAME}'",
|
||||||
|
|
Loading…
Reference in New Issue