From d66f8874160c68bb81738b98bb8ba0901ac5eab1 Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Tue, 3 Sep 2024 16:45:09 +0200 Subject: [PATCH] Bugfix -correction pour le EF600mm f/4L IS III USM +1.4x III qui affichait Unknown (160) 840mm --- .gitignore | 1 + keywords2insta.sh | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e43b0f9..3ff048c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Store +.envrc diff --git a/keywords2insta.sh b/keywords2insta.sh index 2cdbd2a..e9d544c 100755 --- a/keywords2insta.sh +++ b/keywords2insta.sh @@ -425,18 +425,22 @@ if [[ -n $iso ]] && [[ -n $speed ]] && [[ -n $aperture ]]; then # "Lens": "RF24-105mm F4-7.1 IS STM", # "LensID": "Canon RF 24-105mm F4-7.1 IS STM" -# "LensInfo": "840mm f/?", +# "LensInfo": "840mm f/?", # "LensModel": "EF600mm f/4L IS III USM +1.4x III", # "Lens": "EF600mm f/4L IS III USM +1.4x III", # "LensID": "Canon EF 600mm f/4L IS III USM + 1.4x" -# "LensInfo": "700mm f/?", +# "LensInfo": "700mm f/?", # "LensModel": "EF500mm f/4L IS USM +1.4x III", # "Lens": "EF500mm f/4L IS USM +1.4x III", # "LensID": "Canon EF 500mm f/4L IS USM + 1.4x" +# "LensInfo": "840mm f/?", +# "LensModel": "EF600mm f/4L IS III USM +1.4x III", +# "Lens": "EF600mm f/4L IS III USM +1.4x III", +# "LensID": "Unknown (160) 840mm" - if [[ -n $lensID ]]; then + if [[ -n $lensID ]] && [[ ! "$lensID" =~ Unknown* ]]; then printf " %-11s %-35s \n" "LensID:" "${lensID}" l="$lensID" elif [[ -n $lensModel ]]; then