diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a97fa56
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+
+*.swp
diff --git a/furaffinity-dl b/furaffinity-dl
index 17b857b..f4358af 100755
--- a/furaffinity-dl
+++ b/furaffinity-dl
@@ -75,11 +75,11 @@ https://github.com/Shnatsel/furaffinity-dl/issues" >&2
             echo "WARNING: $page seems to be inaccessible, skipping."
             continue
         fi
-
+	
         # 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 --max-count=1 --only-matching '"[^"]+">Download[[:space:]]?</a>' "$tempfile" | cut -d '"' -f 2)
+        image_url='http:'$(grep -E --max-count=1 --only-matching 'href="//d\.facdn\.net/art/.+\.[[:alpha:]]{1,4}">Download' "$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: