fix regex
This commit is contained in:
@@ -15,7 +15,7 @@ module Downloads
|
||||
def rewrite_jpeg_versions(url, headers)
|
||||
# example: https://yande.re/jpeg/2c6876ac2317fce617e3c5f1a642123b/yande.re%20292092%20hatsune_miku%20tid%20vocaloid.jpg
|
||||
|
||||
if url =~ %r{\A(https?://(?:#{DOMAINS}))/jpeg/([a-f0-9]+/.+)\.jpg\Z}
|
||||
if url =~ %r{\A(https?://(?:#{DOMAINS}))/jpeg/([a-f0-9]+(?:/.*)?)\.jpg\Z}
|
||||
url = $1 + "/image/" + $2 + ".png"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user