fix normalization for nico seiga urls

This commit is contained in:
r888888888
2017-05-31 15:44:23 -07:00
parent 69fd6e6ca1
commit 6a706a6b90
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config',
ActiveRecord::Base.without_timeout do
ArtistUrl.where("normalized_url like ?", "\%nico\%").find_each do |url|
before = url.normalized_url
url.normalized_url = Sources::Site.new(before).normalize_for_artist_finder!
url.normalize!
puts "#{before} -> #{url.normalized_url}" if before != url.normalized_url
end
end