éviter de surcharger /tmp avec YTEMP="$HOME/astroport/tmp/$(date -u +%s%N | cut -b1-13)"
This commit is contained in:
parent
1d16d76db4
commit
679b61f8c7
|
@ -130,7 +130,7 @@ YTURL="$URL"
|
|||
REVSOURCE="$(echo "$YTURL" | awk -F/ '{print $3}' | rev)_"
|
||||
|
||||
# Create TEMP directory to copy $YID_$TITLE.$FILE_EXT
|
||||
YTEMP="/tmp/$(date -u +%s%N | cut -b1-13)"
|
||||
YTEMP="$HOME/astroport/tmp/$(date -u +%s%N | cut -b1-13)"
|
||||
mkdir -p ${YTEMP}
|
||||
|
||||
# youtube-dl $YTURL
|
||||
|
@ -256,7 +256,7 @@ rm -Rf ${YTEMP}
|
|||
zenity --warning --width 600 --text 'DEVELOPPEMENT . ZONE . Please Participate https://git.p2p.legal'
|
||||
|
||||
# Create TEMP directory
|
||||
YTEMP="/tmp/$(date -u +%s%N | cut -b1-13)"
|
||||
YTEMP="$HOME/astroport/tmp/$(date -u +%s%N | cut -b1-13)"
|
||||
mkdir -p ${YTEMP}
|
||||
|
||||
artist=$(zenity --entry --width 400 --title "Extraction MP3 depuis Youtube" --text "Artiste recherché ou Lien Youtube" --entry-text="")
|
||||
|
@ -539,12 +539,12 @@ timestamp=$(date -u +%s%N | cut -b1-13)
|
|||
echo "MEDIAKEY=${MEDIAKEY}
|
||||
echo \"Encoder ${FILE_NAME} en h265 avant import ? Tapez sur ENTER pour continuer sans...\"
|
||||
read reponse
|
||||
if [[ $reponse ]]; then
|
||||
ffmpeg -i $HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME} -vcodec libx265 -crf 28 /tmp/output.mp4
|
||||
mv $HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME} /tmp
|
||||
mv /tmp/output.mp4 $HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME}
|
||||
if [[ \$reponse ]]; then
|
||||
ffmpeg -i \"$HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME}\" -vcodec libx265 -crf 28 $HOME/astroport/${MEDIAID}.mp4
|
||||
mv \"$HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME}\" \"$HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME}.old\"
|
||||
mv $HOME/astroport/${MEDIAID}.mp4 \"$HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME}.mp4\"
|
||||
fi
|
||||
~/.zen/astrXbian/zen/new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\"
|
||||
~/.zen/astrXbian/zen/new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_NAME}.mp4\"
|
||||
rm -f /tmp/\${MEDIAKEY}.pass
|
||||
rm -f /tmp/\${MEDIAKEY}.dunikey ## REMOVE KEYS
|
||||
rm ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||
|
|
Loading…
Reference in New Issue