screen capture error was stopping import
This commit is contained in:
parent
c4d8eefd2b
commit
a67fb6486c
|
@ -433,18 +433,20 @@ GENRES="[\"$(echo ${FILM_GENRES} | sed s/\|/\",\"/g)\"]"
|
||||||
########################################################################
|
########################################################################
|
||||||
# Screen capture is used as thumbnail
|
# Screen capture is used as thumbnail
|
||||||
########################################################################
|
########################################################################
|
||||||
zenity --warning --width 300 --text "Cliquez nous capturons votre écran comme vignette MEDIA"
|
if [[ $(echo $DISPLAY | cut -d ':' -f 1) == "" ]]; then
|
||||||
sleep 1
|
zenity --warning --width 300 --text "Cliquez nous capturons votre écran comme vignette MEDIA"
|
||||||
[[ $(echo $DISPLAY | cut -d ':' -f 1) == "" ]] && import -window root /tmp/screen.png
|
sleep 1
|
||||||
|
import -window root /tmp/screen.png
|
||||||
|
fi
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
### MOVING FILE TO ~/astroport ####
|
### MOVING FILE TO ~/astroport ####
|
||||||
###################################
|
###################################
|
||||||
mkdir -p ~/astroport/${CAT}/${MEDIAID}/
|
mkdir -p ~/astroport/${CAT}/${MEDIAID}/
|
||||||
mv -f "${FILE_PATH}/${FILE_NAME}" "$HOME/astroport/${CAT}/${MEDIAID}/${TITLE}.${FILE_EXT}"
|
|
||||||
mv /tmp/screen.png ~/astroport/${CAT}/${MEDIAID}/screen.png
|
mv /tmp/screen.png ~/astroport/${CAT}/${MEDIAID}/screen.png
|
||||||
|
|
||||||
|
mv -f "${FILE_PATH}/${FILE_NAME}" "$HOME/astroport/${CAT}/${MEDIAID}/${TITLE}.${FILE_EXT}"
|
||||||
|
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
zenity --warning --width ${large} --text "Votre fichier ~/astroport/${CAT}/${MEDIAID}/${TITLE}.${FILE_EXT} est prêt à embarquer. Cliquez sur OK, nous allons préparer son script d'ajout à Astroport..."
|
zenity --warning --width ${large} --text "Votre fichier ~/astroport/${CAT}/${MEDIAID}/${TITLE}.${FILE_EXT} est prêt à embarquer. Cliquez sur OK, nous allons préparer son script d'ajout à Astroport..."
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue