From 444869b8f596180b509dc8404a9a8b5ec5575bfb Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Thu, 2 Jul 2015 06:11:05 +0300 Subject: [PATCH] fix downloading content when logged in --- furaffinity-dl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/furaffinity-dl b/furaffinity-dl index cd56ea3..d0fdd0b 100755 --- a/furaffinity-dl +++ b/furaffinity-dl @@ -64,7 +64,7 @@ while [ -n "$url" ]; do # Get the full size image URL. # This will be a facdn.net link, we have to use HTTP # to get around DPI-based page blocking in some countries. - image_url='http:'$(grep -E -m 1 '">Download[[:space:]]?' "$tempfile" | cut -d '"' -f 2) + image_url='http:'$(grep -E -m 1 --only-matching '"[^"]+">Download[[:space:]]?' "$tempfile" | cut -d '"' -f 2) # TODO: Get the submission title out of the page # this trick may come in handy for avoiding slashes in filenames: