forked from axiom-team/astrXbian
write ~/astroport/Add_${MEDIAKEY}_script.sh for later batch import
This commit is contained in:
parent
b51899157b
commit
73d7c85552
|
@ -540,8 +540,8 @@ timestamp=$(date -u +%s%N | cut -b1-13)
|
|||
echo "MEDIAKEY=${MEDIAKEY}" > ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||
[[ $CHOICE == "TMDB" ]] && echo "echo \"Encoder ${FILE_NAME} en h265 avant import ? Tapez sur ENTER.. Sinon saisissez qqch avant...\"
|
||||
reponse=\$1
|
||||
[[ \! \$reponse ]] \&\& read reponse
|
||||
if [[ \! \$reponse ]]; then
|
||||
[[ ! \$reponse ]] && read reponse
|
||||
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\"
|
||||
|
@ -555,7 +555,7 @@ echo "~/.zen/astrXbian/zen/new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${M
|
|||
echo "rm -f /tmp/\${MEDIAKEY}.pass
|
||||
rm -f /tmp/\${MEDIAKEY}.dunikey ## REMOVE KEYS
|
||||
echo 'Si tout est OK, appuyez dur ENTER, sinon ESC'
|
||||
[[ \! \$1 ]] && read finish
|
||||
[[ ! \$1 ]] && read finish
|
||||
rm ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||
" >> ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||
|
||||
|
|
Loading…
Reference in New Issue