Fix bug where Pixiv /img-inf/ urls were incorrectly normalized

This commit is contained in:
Toks
2014-06-13 16:18:25 -04:00
parent e41d4badb9
commit cb1f00b448

View File

@@ -34,7 +34,7 @@ module Downloads
if url =~ %r!(/img/.+?/.+?)_m.+$!
match = $1
url.sub!(match + "_m", match)
elsif url =~ %r!(/img/.+?/.+?)_s.+$!
elsif url =~ %r!(/img/.+?/.+?)_s.+$! && url !~ %r!/img-inf/!
match = $1
url.sub!(match + "_s", match)
end