Debug
This commit is contained in:
@@ -16,7 +16,7 @@ reset="\033[0m"
|
||||
wild=("wildlife" "wildlifephoto" "wildlifephotographer")
|
||||
nat=("naturelovers" "natureshot" "naturephotography")
|
||||
reg=("Bourgogne" "Burgundy" "Bourgogne Franche-Comté" "Côte d'or")
|
||||
others=("lanscape" "animal" "beautiful nature")
|
||||
#others=("lanscape" "animal" "beautiful nature")
|
||||
#others=()
|
||||
|
||||
# Display Instagram AND/OR Flickr tags
|
||||
@@ -27,13 +27,14 @@ ccpx=true # Bécasseau variable, Le Teich, Bird
|
||||
gps=0
|
||||
opt_gps=true
|
||||
|
||||
# Default: all tags
|
||||
opt_others=false
|
||||
opt_lens=false
|
||||
opt_model=false
|
||||
opt_region=false
|
||||
opt_nature=false
|
||||
opt_wildlife=false
|
||||
opt_all=true
|
||||
opt_all=true # default
|
||||
|
||||
long_path=`pwd`"/"`basename "$0"` # /Users/bruno/Documents/Scripts/kymsu2/keywords2insta.sh
|
||||
# long: /Users/bruno/Documents/GitHub/GooFuzz/keywords2insta.sh
|
||||
@@ -91,7 +92,7 @@ showHelp() {
|
||||
echo -e " ${green}-m${reset}, ${green}--model${reset} Add APN model exif"
|
||||
echo -e " ${green}-n${reset}, ${green}--nature${reset} Add nature related keywords"
|
||||
echo -e " ${green}-r${reset}, ${green}--region${reset} Add region related keywords"
|
||||
echo -e " ${green}-t${reset} <keyword>${reset} Add some additionnals keywords"
|
||||
echo -e " ${green}-t${reset} <keywords> Add some additionnals keywords"
|
||||
echo -e " ${green}-w${reset}, ${green}--wildlife${reset} Add wildlife related keywords"
|
||||
echo -e " ${green}-h${reset}, ${green}--help${reset} Display this help"
|
||||
echo
|
||||
@@ -182,12 +183,26 @@ if [ $opt_lens = true ] || [ $opt_model = true ] || [ $opt_region = true ] || [
|
||||
opt_all=false
|
||||
fi
|
||||
|
||||
# others: array from script
|
||||
# tags: array from arguments
|
||||
if [ ${#others[@]} -gt 0 ] || [ ${#tags[@]} -gt 0 ]; then
|
||||
opt_others=true
|
||||
fi
|
||||
|
||||
t=$(echo "${tags[@]}" | sed -r 's/[^ ]+/,&/g')
|
||||
|
||||
#
|
||||
echo "----"
|
||||
echo "others: " ${others[@]}
|
||||
echo "tags: " ${tags[@]} # t
|
||||
echo "opt_lens: " $opt_lens # l
|
||||
echo "opt_model: " $opt_model # m
|
||||
echo "opt_region: " $opt_region # r
|
||||
echo "opt_nature: " $opt_nature # n
|
||||
echo "opt_wildlife: " $opt_wildlife # w
|
||||
echo "opt_others: " $opt_others
|
||||
echo "----"
|
||||
#
|
||||
|
||||
if ! command -v exiftool &> /dev/null; then
|
||||
echo -e "${bold}exiftool${reset} could not be found !\n"
|
||||
@@ -292,6 +307,9 @@ if [[ -n $iso ]] && [[ -n $speed ]] && [[ -n $aperture ]]; then
|
||||
fi
|
||||
printf " %-11s %-35s \n" "Focal:" "${focal}"
|
||||
|
||||
# Many lens have the same Lensid
|
||||
# https://exiftool.org/forum/index.php?topic=3833.msg82043#msg82043
|
||||
|
||||
# "LensInfo": "100-500mm f/?",
|
||||
# "LensModel": "RF100-500mm F4.5-7.1 L IS USM",
|
||||
# "Lens": "RF100-500mm F4.5-7.1 L IS USM",
|
||||
|
||||
Reference in New Issue
Block a user