Fix artist finder for hentai foundry

#2489
This commit is contained in:
Toks
2015-08-11 20:28:58 -04:00
parent 554a616963
commit 8e17b4936a
3 changed files with 16 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ class ArtistUrl < ActiveRecord::Base
url = url.gsub(/^http:\/\/blog-imgs-\d+\.fc2/, "http://blog.fc2")
url = url.gsub(/^http:\/\/blog-imgs-\d+-\w+\.fc2/, "http://blog.fc2")
url = url.sub(%r!(http://seiga.nicovideo.jp/user/illust/\d+)\?.+!, '\1')
url = url.sub(%r!^http://pictures.hentai-foundry.com//!, "http://pictures.hentai-foundry.com/")
begin
url = Sources::Site.new(url).normalize_for_artist_finder!
rescue PixivApiClient::Error