From f105d39bd03bb2c1b1d375de600e0be60bf742a3 Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 17 May 2021 04:02:45 +0200 Subject: [PATCH] themoviedb.org better search --- ajouter_video.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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