From 75f0e66a0df6a0b73d2c7355f9f781faee48e8cc Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 3 Sep 2022 23:10:52 -0400 Subject: [PATCH] Fix deviantart scraper --- lib/philomena/scrapers/deviantart.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena/scrapers/deviantart.ex b/lib/philomena/scrapers/deviantart.ex index 55ffacf2..4bc8fdd9 100644 --- a/lib/philomena/scrapers/deviantart.ex +++ b/lib/philomena/scrapers/deviantart.ex @@ -1,6 +1,6 @@ defmodule Philomena.Scrapers.Deviantart do - @image_regex ~r|| - @source_regex ~r|| + @image_regex ~r|data-rh="true" rel="preload" href="([^"]*)" as="image"| + @source_regex ~r|rel="canonical" href="([^"]*)"| @artist_regex ~r|https://www.deviantart.com/([^/]*)/art| @serial_regex ~r|https://www.deviantart.com/(?:.*?)-(\d+)\z| @cdnint_regex ~r|(https://images-wixmp-[0-9a-f]+.wixmp.com)(?:/intermediary)?/f/([^/]*)/([^/?]*)|