diff --git a/ajouter_video.sh b/ajouter_video.sh index 15af820..d85893e 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -244,7 +244,7 @@ FILE_TITLE="${FILE_NAME%.*}" # OPEN default browser and search TMDB zenity --question --width 300 --text "IMPORTANT! Nous allons ouvrir le site themoviedb pour y récuperer le numéro d'identification de votre vidéo" [ $? == 1 ] && exit 1 -xdg-open "https://www.themoviedb.org/search?query=${FILE_TITLE}" +xdg-open "https://www.themoviedb.org/search?query=$(echo ${FILE_TITLE} | sed 's/_/%20/g')" TMDB=$(zenity --entry --title="Identification TMDB" --text="Indiquez le numéro de la fiche du film. Exemple: 301528 (à extraire du lien https://www.themoviedb.org/movie/301528-toy-story-4)" --entry-text="") [[ $TMDB == "" ]] && exit 1