Fix duplicate country entries

This commit is contained in:
Sam
2026-01-29 09:59:16 -06:00
parent 49372521d2
commit 1dabf99fa8

View File

@@ -1534,6 +1534,8 @@ process_batch() {
if [ -z "$country" ]; then
country=$(geo_lookup "$ip")
fi
# Strip country code prefix (e.g. "US, United States" -> "United States")
country=$(echo "$country" | sed 's/^[A-Z][A-Z], //')
# Normalize
case "$country" in
*Iran*) country="Iran - #FreeIran" ;;