From f28be7cf1d112f9e48bf853ad032f8f6f9a622c8 Mon Sep 17 00:00:00 2001 From: dryo Date: Fri, 15 Nov 2019 14:49:58 +0100 Subject: [PATCH] Repair swamp unfortunately the URL has to be found using its alt description --- plugins/swamp/extract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/swamp/extract.js b/plugins/swamp/extract.js index 8357abe4..eaccb859 100644 --- a/plugins/swamp/extract.js +++ b/plugins/swamp/extract.js @@ -1,5 +1,5 @@ function(page) { - var regex = /]*src='(strips\/[^']*)'/; + var regex = /]+src="([^"]+)"[^>]+alt="Swamp\s+Cartoon\s+of\s+the\s+Day/; var match = regex.exec(page); return match[1]; }