add auragem.space as a source of hosts (commented)
Full URI: gemini://auragem.space/search/capsules Commented for now, because most of the hosts it adds are dead.
This commit is contained in:
parent
54fbbd8fc1
commit
eb94a53242
11
get-hosts.sh
11
get-hosts.sh
|
@ -3,6 +3,7 @@
|
||||||
# Download and merge lists of Gemini hosts from:
|
# Download and merge lists of Gemini hosts from:
|
||||||
# gemini://geminispace.info/known-hosts
|
# gemini://geminispace.info/known-hosts
|
||||||
# gemini://gemini.bortzmeyer.org/software/lupa/lupa-capsules.txt
|
# gemini://gemini.bortzmeyer.org/software/lupa/lupa-capsules.txt
|
||||||
|
# gemini://auragem.space/search/capsules
|
||||||
|
|
||||||
set -o errexit # (-e) exit immediately if any command has a non-zero exit status
|
set -o errexit # (-e) exit immediately if any command has a non-zero exit status
|
||||||
set -o nounset # (-u) don't accept undefined variables
|
set -o nounset # (-u) don't accept undefined variables
|
||||||
|
@ -24,10 +25,18 @@ if [ -z "$hosts2" ]; then
|
||||||
>&2 echo "lupa-capsules.txt download failed."
|
>&2 echo "lupa-capsules.txt download failed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
#hosts3=$(agunua --binary --maximum-time 20 \
|
||||||
|
# gemini://auragem.space/search/capsules 2>/dev/null \
|
||||||
|
# | grep "gemini://" | cut -d ' ' -f 2 | cut -d '/' -f 3)
|
||||||
|
#if [ -z "$hosts3" ]; then
|
||||||
|
# >&2 echo "geminispace.info/known-hosts download failed."
|
||||||
|
# exit 1
|
||||||
|
#fi
|
||||||
|
|
||||||
# Concatenate the two files.
|
# Concatenate hosts files.
|
||||||
hosts="$hosts1
|
hosts="$hosts1
|
||||||
$hosts2"
|
$hosts2"
|
||||||
|
#$hosts3"
|
||||||
|
|
||||||
# Remove empty lines; convert punycode to unicode; sort entries; remove duplicates.
|
# Remove empty lines; convert punycode to unicode; sort entries; remove duplicates.
|
||||||
hosts=$(echo "$hosts" | awk NF | idn --allow-unassigned --idna-to-unicode | sort -fu)
|
hosts=$(echo "$hosts" | awk NF | idn --allow-unassigned --idna-to-unicode | sort -fu)
|
||||||
|
|
Loading…
Reference in New Issue