Browse Source

Fix HTTPS handling

master
JustAnotherArchivist 5 years ago
parent
commit
2a7a4ea6dc
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      archivebot-blogspot

+ 5
- 1
archivebot-blogspot View File

@@ -4,9 +4,13 @@ scriptpath="$(cd "$(dirname "$0")"; pwd -P)"
if [[ "$1" =~ ^http ]]
then
url="$1"
url="${url/http:/https:}"
pattern="${url//./\\.}"
pattern="${pattern/https:/https?:}"
else
url="https://${1}.blogspot.com/"
pattern="https?://${url//./\\.}/"
fi

echo "!a ${url}"
echo "!ig $("${scriptpath}/archivebot-jobid-calculation" "${url}") ^${url//./\\.}search\?(.*&)?reverse-paginate=true(&|$)"
echo "!ig $("${scriptpath}/archivebot-jobid-calculation" "${url}") ^${pattern}search\?(.*&)?reverse-paginate=true(&|$)"

Loading…
Cancel
Save