forked from axiom-team/astrXbian
was missing REVSOURCE in MEDIAKEY name creation if desktop (NO $1) run
This commit is contained in:
parent
294a6ae979
commit
d05c60d07d
|
@ -33,8 +33,6 @@ URL="$1"
|
|||
&& [[ $IMPORT == "Video" ]] && IMPORT="Youtube" \
|
||||
&& CHOICE="$IMPORT"
|
||||
|
||||
|
||||
|
||||
[[ $CHOICE == "Web" ]] && CHOICE=$(zenity --entry --width 640 --title="$URL => Astroport" --text="Cette source WEB est à enregistrer comme " --entry-text="Page" WebSite)
|
||||
|
||||
# REMOVE GtkDialog errors for zenity
|
||||
|
@ -115,6 +113,8 @@ YTURL="$URL"
|
|||
[[ $YTURL == "" ]] && YTURL=$(zenity --entry --width 300 --title "Lien ou identifiant à copier" --text "Indiquez le lien (URL) ou l'ID de la vidéo" --entry-text="")
|
||||
[[ $YTURL == "" ]] && exit 1
|
||||
|
||||
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)"
|
||||
mkdir -p ${YTEMP}
|
||||
|
|
Loading…
Reference in New Issue