Revert to old full URL grepping ()

It appears the devs at furaffinity can't decide how to do download links
They've reverted to the old style, naturally we do the same.
This commit is contained in:
Magnus Boman 2020-02-03 20:29:56 +01:00 committed by GitHub
parent 95f79727bf
commit 7bee8beef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,11 +142,7 @@ https://github.com/Xerbo/furaffinity-dl/issues" >&2
# Get the full size image URL. # Get the full size image URL.
# This will be a facdn.net link, we will default to HTTPS # This will be a facdn.net link, we will default to HTTPS
# but this can be disabled with -i or --http for specific reasons # but this can be disabled with -i or --http for specific reasons
if [ $classic = true ]; then
image_url="$prefix$(grep --only-matching --max-count=1 ' href="//d.facdn.net/art/.\+">Download' "$tempfile" | cut -d '"' -f 2)" image_url="$prefix$(grep --only-matching --max-count=1 ' href="//d.facdn.net/art/.\+">Download' "$tempfile" | cut -d '"' -f 2)"
else
image_url="$prefix$(grep --only-matching --max-count=1 ' href="//d.facdn.net/download/art/.\+">Download' "$tempfile" | cut -d '"' -f 2)"
fi
# Get metadata # Get metadata
description="$(grep 'og:description" content="' "$tempfile" | cut -d '"' -f 4)" description="$(grep 'og:description" content="' "$tempfile" | cut -d '"' -f 4)"