pawoo: don't return bogus artists when artist finder doesn't find a match.

This commit is contained in:
evazion
2017-06-13 01:13:13 -05:00
parent 655e53fe65
commit 3560bbbd47
2 changed files with 20 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ class Artist < ApplicationRecord
break if url =~ /(?:data|media)\.tumblr\.com\/[a-z0-9]+\/$/i
break if url =~ /deviantart\.net\//i
break if url =~ %r!\Ahttps?://(?:mobile\.)?twitter\.com/\Z!i
break if url =~ %r!pawoo\.net/(?:web/)?$!i
end
artists.inject({}) {|h, x| h[x.name] = x; h}.values.slice(0, 20)