From 8a06d3a7442646c118584a3177aab0c967a347cb Mon Sep 17 00:00:00 2001 From: nonamethanks Date: Thu, 18 Jun 2020 08:07:45 +0200 Subject: [PATCH] Zerochan: Normalize png links --- app/logical/sources/strategies/null.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/sources/strategies/null.rb b/app/logical/sources/strategies/null.rb index 4ce04c30c..4dd02ebe6 100644 --- a/app/logical/sources/strategies/null.rb +++ b/app/logical/sources/strategies/null.rb @@ -47,7 +47,7 @@ module Sources when %r{\Ahttps?://c(?:s|han|[1-4])\.sankakucomplex\.com/data(?:/sample)?/(?:[a-f0-9]{2}/){2}(?:sample-|preview)?([a-f0-9]{32})}i "https://chan.sankakucomplex.com/en/post/show?md5=#{$1}" - when %r{\Ahttps?://(?:www|s(?:tatic|[1-4]))\.zerochan\.net/.+(?:\.|\/)(\d+)(?:\.(?:jpe?g?))?\z}i + when %r{\Ahttps?://(?:www|s(?:tatic|[1-4]))\.zerochan\.net/.+(?:\.|\/)(\d+)(?:\.(?:jpe?g?|png))?\z}i "https://www.zerochan.net/#{$1}#full" when %r{\Ahttps?://static[1-6]?\.minitokyo\.net/(?:downloads|view)/(?:\d{2}/){2}(\d+)}i