Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix check for archive.org snapshot availability. - annna - Annna the nice frien…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit a8df83437f63bfe2a68eafedcdb86502927aafe8
parent 65f4382005958da2eee7236d83b35296a641f575
Author: Annna Robert-Houdin <[email protected]>
Date: Sun, 12 Jan 2025 20:16:33 +0100
Fix check for archive.org snapshot availability.
Diffstat:
M fetch-uri | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/fetch-uri b/fetch-uri
@@ -35,9 +35,10 @@ curl -qgsm 5 --fail -L --max-redirs 3 -A "$ua" $opth ${useto…
if [ $? -eq 22 ];
then
aiapiuri="http://archive.org/wayback/available?url=${uri}"
+ usetor=0
apiai="$(curl -qgsm 5 --fail -L --max-redirs 3 -A "$ua" $opth ${usetor…
- notavailable="$(echo "$apiai" | grep -c -e '"archived_snapshots": {}')"
- if [ -z "${notavailable}" ];
+ available="$(echo "$apiai" | grep 'available')"
+ if [ -n "${available}" ];
then
aiuri="$(echo "$apiai" | awk -F 'url": "' '{print $3}' 2>/dev/…
curl -qgsm 5 --fail -L --max-redirs 3 -A "$ua" $opth ${usetor:…
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.