diff --git a/ajouter_video.sh b/ajouter_video.sh index 39a0b8c..1539c61 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -99,8 +99,8 @@ TITLE=$(zenity --entry --width 300 --title "Titre" --text "Indiquez le titre de YEAR=$(zenity --entry --width 300 --title "Année" --text "Indiquez année de la vidéo. Exemple: 1985" --entry-text="") # VIDEO RESOLUTION -FILE_RES=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "${FILE}" | cut -d "x" -f 2)p -RES=$FILE_RES +FILE_RES=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "${FILE}" | cut -d "x" -f 2) +RES=${FILE_RES%?}0p # Rounding. Replace last digit with 0 #RES=$(zenity --entry --width 300 --title="Résolution" --text="Résolution de la vidéo" --entry-text="${FILE_RES}" SD HD 4K 360p 480p 720p 1080p) # VIDEO SEASON or SAGA diff --git a/zen/bash_template.sh b/zen/bash_template.sh index 1cc11be..9e015c0 100755 --- a/zen/bash_template.sh +++ b/zen/bash_template.sh @@ -9,3 +9,5 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized ME="${0##*/}" YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1); IPFSNODEID=$(ipfs id -f='\n') +G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) +