From 8ce82eac601e703130007e726cb275eef4c7a925 Mon Sep 17 00:00:00 2001 From: Steven Saus Date: Tue, 11 May 2021 21:41:38 -0400 Subject: [PATCH] fixed error for IA returned urls --- muna.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muna.sh b/muna.sh index a98f578..1921333 100755 --- a/muna.sh +++ b/muna.sh @@ -45,7 +45,7 @@ function unredirector { echo "[info] Fetching Internet Archive version of" >&2; echo "[info] page $firsturl" >&2; fi - url=$(echo "$api_ia" | awk -F 'url": "' '{print $2}' 2>/dev/null | awk -F '", "' '{print $1}' | awk -F '"' '{print $1}') + url=$(echo "$api_ia" | awk -F 'url": "' '{print $3}' 2>/dev/null | awk -F '", "' '{print $1}' | awk -F '"' '{print $1}') unset -v firsturl fi else